예제 #1
0
 public ProductsController(
     IProductsServices productsServices,
     UserManager <ApplicationUser> userManager)
 {
     this.productsServices = productsServices;
     this.userManager      = userManager;
 }
예제 #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);
 }
예제 #3
0
 public ProductsController(IProductsServices service)
 {
     _service = service;
 }
예제 #4
0
 public ShoppingCartController(IShoppingCartServices services, IProductsServices productsServices)
 {
     _services         = services;
     _productsServices = productsServices;
 }
예제 #5
0
 public void Init()
 {
     this.service    = new ProductsServices();
     this.controller = new ProductsController(this.service);
     this.ConfigureMapper();
 }
예제 #6
0
 public ProductsPresenter(IProductsServices productsServices)
 {
     _productsServices = productsServices;
 }
 public ProductsController(
     IProductsServices productsServices)
 {
     _productsServices = productsServices ?? throw new ArgumentNullException(nameof(productsServices));
 }
예제 #8
0
 public HomeController(ILogger <HomeController> logger, ICategoryServices categoryServices, IProductsServices productsServices)
 {
     _categoryServices = categoryServices;
     _productsServices = productsServices;
     _logger           = logger;
 }
예제 #9
0
 public ProductsController(IProductsServices productsService)
 {
     _productsService = productsService;
 }
예제 #10
0
 public ProductsController(IProductsServices iProductsServices, ICategoriesServices icategoriesServices)
 {
     _productsService    = iProductsServices;
     _categoriesServices = icategoriesServices;
 }
예제 #11
0
 public ProductsController(IProductsServices services)
 {
     _services = services;
 }
예제 #12
0
 public ProductsController()
 {
     _productsService = new ProductServices();
 }
예제 #13
0
 public ProductsController(IProductsServices _productsServices)
 {
     ProductsServices = _productsServices;
 }