public GreenHouseService(IGreenHouseRepository greenHouseRepository, ICropRepository cropRepository, LogHandler.Logger logger, IDeviceRepository deviceRepository) { _logger = logger; _greenHouseRepository = greenHouseRepository; _cropRepository = cropRepository; _deviceRepository = deviceRepository; _iotConnectClient = new IotConnectClient(SolutionConfiguration.BearerToken, SolutionConfiguration.Configuration.EnvironmentCode, SolutionConfiguration.Configuration.SolutionKey); }
public OrderController(IRepository<Availability> availRepo, IBuyerAvailabilityRepository buyerAvailRepo, IRepository<Buyer> buyerRepo, ICropRepository cropRepo, ICropUnitRepository cuRepo, IRepository<Offered> offerRepo, IRepository<Ordered> orderedRepo, IRepository<Order> orderRepo, IPriceRepository priceRepo, IUnitRepository unitRepo) { this.availRepo = availRepo; this.buyerAvailRepo = buyerAvailRepo; this.buyerRepo = buyerRepo; this.cropRepo = cropRepo; this.cuRepo = cuRepo; this.offerRepo = offerRepo; this.orderedRepo = orderedRepo; this.orderRepo = orderRepo; this.priceRepo = priceRepo; this.unitRepo = unitRepo; }
public GetCropsByPlanificationHandler(ICropRepository repo) { _repo = repo; }
public CropController(ICropRepository cropRepository) { _cropRepository = cropRepository; }
public CropService(ICropRepository cropRepository) { this.cropRepository = cropRepository; }
public MockCropService(ICropRepository repository) { this.repository = repository; }
/// <summary> /// Initializes a new instance of the <see cref="CropsController"/> class. /// </summary> /// <param name="mapper"></param> /// <param name="logger"></param> /// <param name="cropRepository"></param> public CropsController(IMapper mapper, ILogger <CropsController> logger, ICropRepository cropRepository) { _mapper = mapper; _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _cropRepository = cropRepository; }
public CropService(ICropRepository cropRepository, LogHandler.Logger logger) { _cropRepository = cropRepository; _logger = logger; }