Пример #1
0
 private void AddFarms(GrowerDto grower)
 {
     for (int i = 0; i < DtoCount; i++)
     {
         var farm = new FarmDto {
             Uid = Guid.NewGuid(), Name = $"Farm {1}", GrowerUid = grower.Uid
         };
         AddFields(farm);
         Farms.Add(farm);
     }
 }
Пример #2
0
 private void CreateDtos()
 {
     for (int i = 0; i < DtoCount; i++)
     {
         var grower = new GrowerDto {
             Uid = Guid.NewGuid(), Name = $"Grower {i}"
         };
         AddFarms(grower);
         Growers.Add(grower);
     }
 }