I want to generate a fake list without specifying all the properties of a fake object using Moq:
var mock = Mock.Of<ICalendar>(x => x.GetSchedules() == new List<ISchedule> {
Is it possible to specify "rules" instead of hard code properties? And is it possible to set the number of elements I want?
Thanks.
source share