public GreenalyticsController(IPlantRepository plantRepository,
                               IPlantGroupRepository plantGroupRepository,
                               IGardenRepository gardenRepository)
 {
     PlantRepository      = plantRepository;
     PlantGroupRepository = plantGroupRepository;
     GardenRepository     = gardenRepository;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GardensController" /> class.
 /// </summary>
 /// <param name="mapper"></param>
 /// <param name="logger"></param>
 /// <param name="gardenRepository"></param>
 public GardensController(IMapper mapper, ILogger <GardensController> logger, IGardenRepository gardenRepository)
 {
     _mapper           = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger           = logger ?? throw new ArgumentNullException(nameof(logger));
     _gardenRepository = gardenRepository ?? throw new ArgumentNullException(nameof(gardenRepository));
 }
 public GameController(IGardenRepository gnomeRepository)
 {
     this.gnomeRepository = gnomeRepository;
 }
Example #4
0
 public GardenController(IGardenRepository gardenRepository)
 {
     _gardenRepository = gardenRepository;
 }
        public GardenService(IGardenRepository gardenRepository, ICityRepository cityRepository,
			ICountyRepository countyRepository, IGardenSizeRepository gardenSizeRepository, IGardenTypeRepository gardenTypeRepository,
			IGardenReasonRepository gardenReasonRepository, IPlantTypeRepository plantTypeRepository)
        {
            GardenRepository = gardenRepository;
            CityRepository = cityRepository;
            CountyRepository = countyRepository;
            GardenSizeRepository = gardenSizeRepository;
            GardenTypeRepository = gardenTypeRepository;
            GardenReasonRepository = gardenReasonRepository;
            PlantTypeRepository = plantTypeRepository;
        }
 public GardenMapController(IGardenRepository gardenRepository)
 {
     GardenRepository = gardenRepository;
     Cache = HttpRuntime.Cache;
 }