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); } }
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); } }