public BaseUseCaseReadOnlyInteractor(IReadOnlyPersistenceGateway <TEntity> readOnlyPersistenceGateway)
 {
     ReadOnlyPersistenceGateway = readOnlyPersistenceGateway;
 }
Exemplo n.º 2
0
 public GetProductsPerRentAverage(IReadOnlyPersistenceGateway <RenterRentalHistory> rentersRentalHistories, IRentUseCasesReadOnlyInteractor rentReadOnlyUseCases)
 {
     _rentersRentalHistories = rentersRentalHistories;
     _rentReadOnlyUseCases   = rentReadOnlyUseCases;
 }
 public GetProductRentalHistory(IReadOnlyPersistenceGateway <ProductRentalHistory> productRentalHistories)
 {
     _productRentalHistories = productRentalHistories;
 }
 public GetOpenRentsPaymentForecast(IReadOnlyPersistenceGateway <Rent> rents)
 {
     _rents = rents;
 }
 public ProductRentalHistoryUseCasesReadOnlyInteractor(IReadOnlyPersistenceGateway <ProductRentalHistory> readOnlyPersistenceGateway, IGetLastProductRent getLastProductRent, IGetProductRentalHistory getProductRentalHistory) : base(readOnlyPersistenceGateway)
 {
     _getLastProductRent      = getLastProductRent;
     _getProductRentalHistory = getProductRentalHistory;
 }
 public CheckProductAvailability(IProductRentalHistoryUseCasesReadOnlyInteractor productsRentalHistories, IReadOnlyPersistenceGateway <Product> products)
 {
     _productsRentalHistories = productsRentalHistories;
     _products = products;
 }
Exemplo n.º 7
0
 public GetUnavailablesProducts(IReadOnlyPersistenceGateway <Product> products)
 {
     _products = products;
 }
 public RentProducts(IManipulationPersistenceGateway <Rent> rents, IManipulationPersistenceGateway <RenterRentalHistory> renterRentalHistories, IManipulationPersistenceGateway <Product> products, IManipulationPersistenceGateway <ProductRentalHistory> productRentalHistories, IReadOnlyPersistenceGateway <Renter> renter, IValidateRentRequirement validateRentRequirement)
 {
     _rents = rents;
     _renterRentalHistories = renterRentalHistories;
     _products = products;
     _productRentalHistories  = productRentalHistories;
     _validateRentRequirement = validateRentRequirement;
 }
 public RenterUseCasesReadOnlyInteractor(IReadOnlyPersistenceGateway <Renter> readOnlyPersistenceGateway) : base(readOnlyPersistenceGateway)
 {
 }
 public RenterRentalHistoryUseCasesReadOnlyInteractor(IReadOnlyPersistenceGateway <RenterRentalHistory> readOnlyPersistenceGateway, IGetRenterRentalHistory getRenterRentalHistory, IGetLastRenterRent getLastRenterRent, IGetProductsPerRentAverage getProductsPerRentAverage) : base(readOnlyPersistenceGateway)
 {
     _getRenterRentalHistory    = getRenterRentalHistory;
     _getLastRenterRent         = getLastRenterRent;
     _getProductsPerRentAverage = getProductsPerRentAverage;
 }
 public ValidateRentRequirement(IReadOnlyPersistenceGateway <Renter> renter, IReadOnlyPersistenceGateway <Product> products)
 {
     _renter   = renter;
     _products = products;
 }
Exemplo n.º 12
0
 public RentUseCasesManipulationInteractor(IReadOnlyPersistenceGateway <Rent> readOnlyPersistenceGateway, IGetRentForecastPrice getRentForecastPrice, IGetOpenRentsPaymentForecast getOpenRentsPaymentForecast, IRentProducts rentProducts, IFinishRent finishRent) : base(readOnlyPersistenceGateway, getRentForecastPrice, getOpenRentsPaymentForecast)
 {
     _rentProducts = rentProducts;
     _finishRent   = finishRent;
 }
Exemplo n.º 13
0
 public RentUseCasesReadOnlyInteractor(IReadOnlyPersistenceGateway <Rent> readOnlyPersistenceGateway, IGetRentForecastPrice getRentForecastPrice, IGetOpenRentsPaymentForecast getOpenRentsPaymentForecast) : base(readOnlyPersistenceGateway)
 {
     _getRentForecastPrice        = getRentForecastPrice;
     _getOpenRentsPaymentForecast = getOpenRentsPaymentForecast;
 }
Exemplo n.º 14
0
 public GetRenterRentalHistory(IReadOnlyPersistenceGateway <RenterRentalHistory> rentersRentalHistories)
 {
     _rentersRentalHistories = rentersRentalHistories;
 }
 public UserController(IUserUseCasesManipulationInteractor useCaseInteractor, IUserReadOnlyController readOnlyController, IReadOnlyPersistenceGateway <User> users) : base(useCaseInteractor, readOnlyController)
 {
     _users = users;
 }
 public ProductUseCasesReadOnlyInteractor(IReadOnlyPersistenceGateway <Product> readOnlyPersistenceGateway, ICheckProductAvailability checkProductAvailability, IGetAvailablesProducts getAvailablesProducts, IGetUnavailablesProducts getUnavailablesProducts) : base(readOnlyPersistenceGateway)
 {
     _checkProductAvailability = checkProductAvailability;
     _getAvailablesProducts    = getAvailablesProducts;
     _getUnavailablesProducts  = getUnavailablesProducts;
 }