Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 internal static List<SheepDto> CreateSheep(this List<SheepDto> animals, int count, SheepType cattleType)
 {
     animals.AddRange(FarmPactRepository.CreateSheep(count, cattleType));
     return animals;
 }