Example #1
0
 public FurnitureInStoragesController(IFurnitureInStorageRepository furnitureInStorageRepository,
                                      IFurnitureRepository furnitureRepository, IStorageRepository storageRepository)
 {
     _furnitureInStorageRepository = furnitureInStorageRepository;
     _furnitureRepository          = furnitureRepository;
     _storageRepository            = storageRepository;
 }
Example #2
0
 public SellerFurnitureListController(IFurnitureInStorageRepository furnitureInStorageRepository,
                                      ITypesRepository typeRepository,
                                      ISubtypeRepository subtypeRepository,
                                      IFurnitureRepository furnitureRepository)
 {
     _furnitureInStorageRepository = furnitureInStorageRepository;
     _furnitureRepository          = furnitureRepository;
 }
 public BillingController(IFurnitureRepository furnitureRepository,
                          ICheckDetailsRepository checkDetailsRepository,
                          ICustomerRepository customerrepository,
                          ICheckDetailsService checkDetailsService)
 {
     _furnitureRepository    = furnitureRepository;
     _checkDetailsRepository = checkDetailsRepository;
     _customerrepository     = customerrepository;
     _checkDetailsService    = checkDetailsService;
 }
Example #4
0
 public FurnituresController(ICompanyDeveloperRepository companyDevRepository,
                             ISubtypeRepository subtypeRepository,
                             IFurnitureRepository furnitureRepository,
                             ITypesRepository typeRepository)
 {
     _companyDevRepository = companyDevRepository;
     _subtypeRepository    = subtypeRepository;
     _furnitureRepository  = furnitureRepository;
     _typeRepository       = typeRepository;
 }
        public FurnitureReservationHandler(
            IFurnitureRepository furnitureRep
            , IAcommodationRepository acommodationRep
            , IPaymentService paymentService)
        {
            _furnitureRep    = furnitureRep;
            _acommodationRep = acommodationRep;
            _paymentService  = paymentService;

            Contract = new ValidationContract();
        }
Example #6
0
        public FurnituresController(IUnitOfWork unitOfWork, IFurnitureRepository furnitureRepository)
        {
            #region RemitaConfig
            //demo credentails provided by remita for use in development.
            //substitute with actual live credentials.
            config  = new SampleConfig("2547916", "4430731", "1946");
            _hasher = new RemitaHashGenerator(config);
            //Better way would be to use DI to inject everything rather than newing up thing in the controller
            Integrator = new RemitaGateWayIntegrator(_hasher);
            #endregion


            _unitOfWork          = unitOfWork;
            _furnitureRepository = furnitureRepository;
        }
Example #7
0
 public CheckDetailsService(
     IFurnitureShopUnitOfWork furnitureShopUnitOfWork,
     IFurnitureRepository furnitureRepository,
     IFurnitureSaleRepository furnitureSaleRepository,
     ICustomerRepository customerRepository,
     ICheckDetailsRepository checkDetailsRepository,
     IFurnitureInStorageRepository furnitureInStorageRepository)
 {
     this.furnitureShopUnitOfWork      = furnitureShopUnitOfWork;
     this.furnitureRepository          = furnitureRepository;
     this.furnitureSaleRepository      = furnitureSaleRepository;
     this.customerRepository           = customerRepository;
     this.checkDetailsRepository       = checkDetailsRepository;
     this.furnitureInStorageRepository = furnitureInStorageRepository;
 }
Example #8
0
        public Api(IRoomRepository roomRepository, IFurnitureRepository furnitureRepository, IHistoryRepository historyRepository, IValidationRules rules)
        {
            _rules = rules;
            _roomRepository = roomRepository;
            _furnitureRepository = furnitureRepository;
            _historyRepository = historyRepository;

            _operations = new Dictionary<string, Func<OperationModel, string>>
            {
                { OperationNameEnum.createroom.ToString().ToLower(), CreateRoom },
                { OperationNameEnum.removeroom.ToString().ToLower(), RemoveRoom },
                { OperationNameEnum.createfurniture.ToString().ToLower(), CreateFurniture },
                { OperationNameEnum.movefurniture.ToString().ToLower(), MoveFurniture },
                { OperationNameEnum.query.ToString().ToLower(), Query },
                { OperationNameEnum.history.ToString().ToLower(), History },
            };
        }
Example #9
0
 public AdminController(IFurnitureRepository repo)
 {
     repository = repo;
 }
 public RemoveFurnitureFromCompanyCommand(IFurnitureRepository furnitureRepository, ICompanyRepository companyRepository) :
     base(furnitureRepository, companyRepository)
 {
 }
Example #11
0
 public NavController(IFurnitureRepository repo)
 {
     repository = repo;
 }
 protected FurnitureCompanyBaseCommand(IFurnitureRepository furnitureRepository, ICompanyRepository companyRepository)
 {
     this.FurnitureRepository = furnitureRepository;
     this.CompanyRepository   = companyRepository;
 }
Example #13
0
 public FurnituresApiController(IUnitOfWork unitOfWork, IFurnitureRepository furnitureRepository)
 {
     _unitOfWork          = unitOfWork;
     _furnitureRepository = furnitureRepository;
 }
 public AddFurnitureToCompanyCommand(IFurnitureRepository furnitureRepository, ICompanyRepository companyRepository) :
     base(furnitureRepository, companyRepository)
 {
 }
Example #15
0
 public HomeController(IUnitOfWork unitOfWork, IVehicleRepository vehicleRepository, IFurnitureRepository furnitureRepository)
 {
     _unitOfWork          = unitOfWork;
     _vehicleRepository   = vehicleRepository;
     _furnitureRepository = furnitureRepository;
 }
Example #16
0
 public FurnitureController(IFurnitureRepository furniture)
 {
     _furnitureRepository = furniture;
 }
Example #17
0
 public CartController(IFurnitureRepository repo, Cart cartService)
 {
     repository = repo;
     cart       = cartService;
 }
 protected CreateFurnitureCommand(IFurnitureFactory furnitureFactory, IFurnitureRepository furnitureRepository)
 {
     FurnitureFactory    = furnitureFactory;
     FurnitureRepository = furnitureRepository;
 }
Example #19
0
 public AdminController(IFurnitureRepository repo)
 {
     repository = repo;
 }
Example #20
0
 public FurnitureController(IFurnitureRepository furnitureRepository)
 {
     this.repo = furnitureRepository;
 }
Example #21
0
 public NavigationMenuViewComponent(IFurnitureRepository repo)
 {
     repository = repo;
 }
Example #22
0
 public CreateTableCommand(IFurnitureFactory furnitureFactory, IFurnitureRepository furnitureRepository) :
     base(furnitureFactory, furnitureRepository)
 {
 }
Example #23
0
 public FormAuthProvider(IFurnitureRepository repo)
 {
     repository = repo;
 }