Example #1
0
 public AccountController(ITemplateService templateService, INotificationService notificationService, ISysConfig config, ICartContext cartContext, IProfileService profileService, IOrderService orderService)
 {
     _templateService = templateService;
     _notificationService = notificationService;
     _config = config;
     _cartContext = cartContext;
     _profileService = profileService;
     _orderService = orderService;
 }
Example #2
0
 public CartController(ICartContext cartContext,
     IProductService productService,
     IShippingCalculatorService shippingService,
     IProfileService profileService,
     IPaymentService paymentService,
     ISysConfig config,
     IOrderService orderService, ITemplateService templateService, INotificationService notificationService)
 {
     _cartContext = cartContext;
     _productService = productService;
     _shippingService = shippingService;
     _profileService = profileService;
     _paymentService = paymentService;
     _config = config;
     _orderService = orderService;
     _templateService = templateService;
     _notificationService = notificationService;
 }
Example #3
0
 /// <summary>
 /// cart controller dependency
 /// </summary>
 /// <param name="CartContext">the ICartContext</param>
 public CartController(ICartContext CartContext)
 {
     _CartContext = CartContext;
 }
Example #4
0
 public TestController(ICartContext ctx)
 {
     context = ctx;
 }
Example #5
0
 public OrderService()
 {
     _server = new TestServer(new WebHostBuilder()
                              .UseStartup <Webstore.Webservice.OrderApi.Startup>());
     this._cartContext = new CartContext();
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CartRepository" /> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public CartRepository(ICartContext context)
 {
     this.Context = context;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CartRepository" /> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public CartRepositoryEx(ICartContext context)
 {
     this.Context = context;
 }
Example #8
0
 public CartController(ICartContext cartCtx)
 {
     this._cartCtxt = cartCtx;
 }
Example #9
0
 public CartLogic(ICartContext context)
 {
     cartRepository = new CartRepository(context);
 }
Example #10
0
 public CartContextTest()
 {
     _cartCtx = new CartContext();
 }
Example #11
0
 public CartRepository(ICartContext context)
 {
     _context = context;
 }
Example #12
0
 public CartRepo()
 {
     _cartcontext = new CartContext();
 }
Example #13
0
 public CartRepo(ICartContext context)
 {
     _cartcontext = context;
 }
Example #14
0
 public CartTest()
 {
     this._cartContext = new CartContext();
     this._productCtx  = new ProductContext();
 }
 public CartsController(ICartContext context)
 {
     db = context;
 }
Example #16
0
 public CartController(IProductContext productContext, ICartContext cartContext)
 {
     productLogic = new ProductLogic(productContext);
     cartLogic    = new CartLogic(cartContext);
 }