internal static List<SheepDto> CreateSheep(int count, SheepType cattleType) { var animals = new List<SheepDto>(); for (var i = 0; i < count; i++) { animals.Add(new SheepDto { Type = cattleType }); } return animals; }
internal static List<SheepDto> CreateSheep(this List<SheepDto> animals, int count, SheepType cattleType) { animals.AddRange(FarmPactRepository.CreateSheep(count, cattleType)); return animals; }