I would like to start using AutoFixture, but I do have a question how to customize a collection.
Given the following class:
public sealed class Contract
{
public DateTime StartDate { get; set; }
}
I would like to use AutoFixture's ISpecimenBuilder (or anything else), to create a collection of Contracts.
I would like to pass to my specimen a Date/Time and as a result, when I'm asking AutoFixture for a collection of Contract instances, I would like to have returned 3:
1 with a
Start Date, in the past (based on the Date/Time I have provided to the ISpecimen).1 with a
Start Date, matching the current date (based on the Date/Time I have provided to the ISpecimen).1 with a
Start Date, in the future (based on the Date/Time I have provided to the ISpecimen).
After reading and playing with it, I believe I need something like a Seed, but I don't get anything working, any advice on how to tackle this?