Ejemplo n.º 1
0
 public ShoppingCartController(IShoppingCartService cartService, IAdminProductService productService, PCStoreDbContext db, UserManager <User> userService)
 {
     this.cartService    = cartService;
     this.productService = productService;
     this.db             = db;
     this.userService    = userService;
 }
Ejemplo n.º 2
0
 public AdminProductServiceTest()
 {
     this.context             = MockDbContext.GetContext();
     this.mapper              = MockAutoMapper.GetAutoMapper();
     this.dropDownService     = new DropDownListService(this.context, this.mapper);
     this.productService      = new ProductService(this.context, this.mapper);
     this.adminProductService = new AdminProductService(this.context, this.mapper, this.productService, this.dropDownService);
 }
Ejemplo n.º 3
0
 public ProductsController(
     ChameleonStoreContext context,
     IMapper mapper,
     IAdminProductService products,
     IDropDownListable dropDownService)
 {
     this.context         = context;
     this.mapper          = mapper;
     this.products        = products;
     this.dropDownService = dropDownService;
 }
Ejemplo n.º 4
0
 public AllModel(IAdminProductService products)
 {
     this.products = products;
 }
Ejemplo n.º 5
0
 public DiscountController(IAdminDiscountService adminDiscountService, IAdminProductService adminProductService)
 {
     this._adminDiscountService = adminDiscountService;
     this._adminProductService  = adminProductService;
 }
Ejemplo n.º 6
0
 public AdminProductsController(IAdminProductService products, IAdminCategoryService categories)
 {
     this.products   = products;
     this.categories = categories;
 }
Ejemplo n.º 7
0
 public ProductsController(IAdminProductService products)
 {
     this.products = products;
 }
Ejemplo n.º 8
0
 public ProductsController(IAdminProductService productService,
                           IAdminCategoryService categoryService)
 {
     this.productService  = productService;
     this.categoryService = categoryService;
 }
Ejemplo n.º 9
0
 public ProductController(IAdminProductService productService, IAdminAuthorService adminAuthorService)
 {
     this._productService     = productService;
     this._adminAuthorService = adminAuthorService;
 }