Example #1
0
 public ItemModule(IItemQueryService itemQueryService) : base("/data/aggregates")
 {
     this.Get("/{itemId}", async(parameters) => new TextResponse(JsonConvert.SerializeObject(
                                                                     await itemQueryService.GetItemById(parameters.itemId))
                                                                 )
              );
 }
 public CustomerPaymentService(IDbContextScopeFactory dbContextScopeFactory, ICustomerRepository customerRepository,
                               IPaymentService paymentService, IItemQueryService itemQueryService)
 {
     _dbContextScopeFactory = dbContextScopeFactory ?? throw new ArgumentNullException("dbContextScopeFactory");
     _customerRepository    = customerRepository ?? throw new ArgumentNullException("customerRepository");
     _paymentService        = paymentService ?? throw new ArgumentNullException("paymentService");
     _itemQueryService      = itemQueryService ?? throw new ArgumentNullException("itemQueryService");
 }
Example #3
0
 public ItemController(IItemQueryService itemQueryService, ICategoryService categoryService,
                       IItemManagementService itemManagementService, IAdminService adminService, IPropertyService propertyService)
 {
     _itemQueryService      = itemQueryService;
     _categoryService       = categoryService;
     _itemManagementService = itemManagementService;
     _adminService          = adminService;
     _propertyService       = propertyService;
 }
 public CartController(IItemQueryService itemQueryService, ICartService cartService, ICustomerAccountService customerAccountService)
 {
     _itemQueryService       = itemQueryService;
     _cartService            = cartService;
     _customerAccountService = customerAccountService;
 }
Example #5
0
 public DiscountsController(ICategoryService categoryService, IDiscountManagementService discountManagementService, IItemQueryService itemQueryService)
 {
     _categoryService           = categoryService;
     _discountManagementService = discountManagementService;
     _itemQueryService          = itemQueryService;
 }
Example #6
0
 public StoreController(ICategoryService categoryService, IItemQueryService itemQueryService)
 {
     _categoryService  = categoryService;
     _itemQueryService = itemQueryService;
 }