Пример #1
0
 public ProductsService(
     IGenericRepository <Products> productsRepository,
     IProductsQuery productsQuery)
 {
     _productsQuery      = productsQuery;
     _productsRepository = productsRepository;
 }
Пример #2
0
 public OrdersHandler(IEmailsCommand emailsCommand, IEmployersQuery employersQuery, ICreditsQuery creditsQuery, IProductsQuery productsQuery)
 {
     _emailsCommand  = emailsCommand;
     _employersQuery = employersQuery;
     _creditsQuery   = creditsQuery;
     _productsQuery  = productsQuery;
 }
Пример #3
0
 public JobAdController(IEmployerJobAdsCommand employerJobAdsCommand, IAnonymousJobAdsCommand anonymousJobAdsCommand, IEmployerLogosCommand employerLogosCommand, IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery, IJobPostersQuery jobPostersQuery, IMemberJobAdViewsQuery memberJobAdViewsQuery, ICreditsQuery creditsQuery, IProductsQuery productsQuery, ICouponsQuery couponsQuery, IOrdersCommand ordersCommand, IOrdersQuery ordersQuery, IEmployerAllocationsCommand employerAllocationsCommand, IEmployerCreditsQuery employerCreditsQuery, IEmployerOrdersCommand employerOrdersCommand, IEmployerOrdersQuery employerOrdersQuery, ILocationQuery locationQuery, IIndustriesQuery industriesQuery, IAccountsManager accountsManager, ILoginCredentialsQuery loginCredentialsQuery, ILoginAuthenticationCommand loginAuthenticationCommand, IAuthenticationManager authenticationManager)
 {
     _employerJobAdsCommand      = employerJobAdsCommand;
     _anonymousJobAdsCommand     = anonymousJobAdsCommand;
     _employerLogosCommand       = employerLogosCommand;
     _jobAdsCommand              = jobAdsCommand;
     _jobAdsQuery                = jobAdsQuery;
     _jobPostersQuery            = jobPostersQuery;
     _memberJobAdViewsQuery      = memberJobAdViewsQuery;
     _creditsQuery               = creditsQuery;
     _productsQuery              = productsQuery;
     _couponsQuery               = couponsQuery;
     _ordersCommand              = ordersCommand;
     _ordersQuery                = ordersQuery;
     _employerAllocationsCommand = employerAllocationsCommand;
     _employerCreditsQuery       = employerCreditsQuery;
     _employerOrdersCommand      = employerOrdersCommand;
     _employerOrdersQuery        = employerOrdersQuery;
     _locationQuery              = locationQuery;
     _industriesQuery            = industriesQuery;
     _accountsManager            = accountsManager;
     _loginCredentialsQuery      = loginCredentialsQuery;
     _loginAuthenticationCommand = loginAuthenticationCommand;
     _authenticationManager      = authenticationManager;
 }
Пример #4
0
 public OrdersController(IEmployerOrdersCommand employerOrdersCommand, IEmployerOrdersQuery employerOrdersQuery, IProductsQuery productsQuery, ICouponsQuery couponsQuery, ICreditsQuery creditsQuery)
 {
     _employerOrdersCommand = employerOrdersCommand;
     _employerOrdersQuery   = employerOrdersQuery;
     _productsQuery         = productsQuery;
     _couponsQuery          = couponsQuery;
     _creditsQuery          = creditsQuery;
 }
 public ProductsController(IProductTasks productTasks, ICategoryTasks categoryTasks, IProductsQuery productsQuery, 
     ICommandProcessor commandProcessor, ICaptchaTasks captchaTasks)
 {
     _productTasks = productTasks;
     _categoryTasks = categoryTasks;
     _productsQuery = productsQuery;
     _commandProcessor = commandProcessor;
     _captchaTasks = captchaTasks;
 }
Пример #6
0
 public OrdersCommand(IOrdersRepository repository, IOrderPricesCommand orderPricesCommand, IProductsQuery productsQuery, IAllocationsCommand allocationsCommand, IAllocationsQuery allocationsQuery, IPurchasesCommand purchasesCommand)
 {
     _repository         = repository;
     _orderPricesCommand = orderPricesCommand;
     _productsQuery      = productsQuery;
     _allocationsCommand = allocationsCommand;
     _allocationsQuery   = allocationsQuery;
     _purchasesCommand   = purchasesCommand;
 }
Пример #7
0
 public ProductController(ISaveFilesFromRequest saleFilesFromRequest, IGetFilesFromRequest getFilesFromRequest,
                          ICommandProduct commandProduct, IProductsQuery productsQuery, IGetCategoriesListQuery getCategorieslistquery,
                          IGenderListQuery genderListQuery)
 {
     _saleFilesFromRequest   = saleFilesFromRequest;
     _getFilesFromRequest    = getFilesFromRequest;
     _commandProduct         = commandProduct;
     _productsQuery          = productsQuery;
     _getCategoriesListQuery = getCategorieslistquery;
     _getGenderListQuery     = genderListQuery;
 }
Пример #8
0
 public ProductsController(
     IProductsQuery productsQuery,
     IProductOptionsQuery productOptionsQuery,
     IProductsCommand productsCommand,
     IProductsCommandValidator productsCommandValidator,
     IProductOptionsCommand productOptionsCommand,
     IProductOptionsCommandValidator productOptionsCommandValidator
     )
 {
     _productsQuery                  = productsQuery;
     _productOptionsQuery            = productOptionsQuery;
     _productsCommand                = productsCommand;
     _productOptionsCommand          = productOptionsCommand;
     _productOptionsCommandValidator = productOptionsCommandValidator;
     _productsCommandValidator       = productsCommandValidator;
 }
Пример #9
0
 public NewOrderController(IPageflowEngine pageflowEngine, IEmployerOrdersCommand employerOrdersCommand, IEmployerOrdersQuery employerOrdersQuery, IProductsQuery productsQuery, ICreditsQuery creditsQuery, ICouponsQuery couponsQuery, IOrdersCommand ordersCommand, IOrdersQuery ordersQuery, IAccountsManager accountsManager, ILoginCredentialsQuery loginCredentialsQuery, ILoginAuthenticationCommand loginAuthenticationCommand, IAuthenticationManager authenticationManager, IIndustriesQuery industriesQuery)
     : base(Routes, pageflowEngine)
 {
     _employerOrdersCommand      = employerOrdersCommand;
     _employerOrdersQuery        = employerOrdersQuery;
     _productsQuery              = productsQuery;
     _creditsQuery               = creditsQuery;
     _couponsQuery               = couponsQuery;
     _ordersCommand              = ordersCommand;
     _ordersQuery                = ordersQuery;
     _accountsManager            = accountsManager;
     _loginCredentialsQuery      = loginCredentialsQuery;
     _loginAuthenticationCommand = loginAuthenticationCommand;
     _authenticationManager      = authenticationManager;
     _industriesQuery            = industriesQuery;
 }
Пример #10
0
        public static Order PrepareOrder(this IEmployerOrdersCommand employerOrdersCommand, IProductsQuery productsQuery, ICreditsQuery creditsQuery, IEnumerable <Guid> productIds, Coupon coupon, Discount discount, CreditCardType creditCardType)
        {
            var order = employerOrdersCommand.PrepareOrder(productIds, coupon, discount, creditCardType);

            SortItems(creditsQuery, order, productsQuery.GetProducts());
            return(order);
        }
Пример #11
0
 public ProductsController(ICurrentPriceQuery currentPriceQuery, IProductsQuery productsQuery)
 {
     _currentPriceQuery = currentPriceQuery;
     _productsQuery     = productsQuery;
 }
 public void Setup()
 {
     _productTasks = MockRepository.GenerateMock<IProductTasks>();
     _categoryTasks = MockRepository.GenerateMock<ICategoryTasks>();
     _productsQuery = MockRepository.GenerateMock<IProductsQuery>();
     _commandProcessor = MockRepository.GenerateMock<ICommandProcessor>();
     _captchaTasks = MockRepository.GenerateMock<ICaptchaTasks>();
     _controller = new ProductsController(_productTasks, _categoryTasks, _productsQuery, _commandProcessor, _captchaTasks);
 }
Пример #13
0
 public EmployerOrdersQuery(IProductsQuery productsQuery, ICreditsQuery creditsQuery)
 {
     _productsQuery = productsQuery;
     _creditsQuery  = creditsQuery;
 }