Given the following test:
[Theory]
[PropertyData(\"GetValidInputForDb\")]
public void GivenValidInputShouldOutputCorrectResult(
string patientId
, st
You need to supply data to the PropertyDataAttribute
as below:
public static IEnumerable<object[]> GetValidInputForDb
{
get
{
yield return new object[]
{
"123",
"abc"
};
}
}
The patientId
value will be 123, the patientFirstName
value will be abc and the SUT value is going to be supplied automatically by AutoFixture.
The CustomPropertyDataAttribute
looks good.