Example #1
0
 public ProductsController(
     IProductsServices productsServices,
     UserManager <ApplicationUser> userManager)
 {
     this.productsServices = productsServices;
     this.userManager      = userManager;
 }
Example #2
0
 public void Setup()
 {
     AutoMapper.Mapper.Initialize(mapper =>
     {
         mapper.CreateMap <CartItems, CartItemsDto>().ReverseMap();
         mapper.CreateMap <Categories, CategoriesDto>().ReverseMap();
         mapper.CreateMap <OrderDetails, OrderDetailsDto>().ReverseMap();
         mapper.CreateMap <Orders, OrdersDto>().ReverseMap();
         mapper.CreateMap <Products, ProductsDto>().ReverseMap();
     });
     _wingtiptoysContext = new WingtiptoysContext();
     _categoryServices   = new CategoryServices(_wingtiptoysContext);
     _productsServices   = new ProductsServices(_wingtiptoysContext);
 }
Example #3
0
 public ProductsController(IProductsServices service)
 {
     _service = service;
 }
Example #4
0
 public ShoppingCartController(IShoppingCartServices services, IProductsServices productsServices)
 {
     _services         = services;
     _productsServices = productsServices;
 }
Example #5
0
 public void Init()
 {
     this.service    = new ProductsServices();
     this.controller = new ProductsController(this.service);
     this.ConfigureMapper();
 }
Example #6
0
 public ProductsPresenter(IProductsServices productsServices)
 {
     _productsServices = productsServices;
 }
 public ProductsController(
     IProductsServices productsServices)
 {
     _productsServices = productsServices ?? throw new ArgumentNullException(nameof(productsServices));
 }
Example #8
0
 public HomeController(ILogger <HomeController> logger, ICategoryServices categoryServices, IProductsServices productsServices)
 {
     _categoryServices = categoryServices;
     _productsServices = productsServices;
     _logger           = logger;
 }
Example #9
0
 public ProductsController(IProductsServices productsService)
 {
     _productsService = productsService;
 }
Example #10
0
 public ProductsController(IProductsServices iProductsServices, ICategoriesServices icategoriesServices)
 {
     _productsService    = iProductsServices;
     _categoriesServices = icategoriesServices;
 }
Example #11
0
 public ProductsController(IProductsServices services)
 {
     _services = services;
 }
Example #12
0
 public ProductsController()
 {
     _productsService = new ProductServices();
 }
Example #13
0
 public ProductsController(IProductsServices _productsServices)
 {
     ProductsServices = _productsServices;
 }