コード例 #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;
 }
コード例 #5
0
 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
ファイル: NewOrderController.cs プロジェクト: formist/LinkMe
 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
ファイル: ProductsExtensions.cs プロジェクト: formist/LinkMe
        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;
 }
コード例 #12
0
 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;
 }