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"); }
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; }
public DiscountsController(ICategoryService categoryService, IDiscountManagementService discountManagementService, IItemQueryService itemQueryService) { _categoryService = categoryService; _discountManagementService = discountManagementService; _itemQueryService = itemQueryService; }
public StoreController(ICategoryService categoryService, IItemQueryService itemQueryService) { _categoryService = categoryService; _itemQueryService = itemQueryService; }