Exemplo n.º 1
0
 public ReviewsController(UserManager <User> userManager, IReviewService reviewService, ISupplementService supplementService, IUserService userService)
 {
     this.userManager       = userManager;
     this.reviewService     = reviewService;
     this.supplementService = supplementService;
     this.userService       = userService;
 }
Exemplo n.º 2
0
 public CartController(ICartSessionService cartSessionService, ICartService cartService, UserManager <CustomIdentityUser> userManager, ISupplementService supplementService)
 {
     _cartSessionService = cartSessionService;
     _cartService        = cartService;
     _userManager        = userManager;
     _supplementService  = supplementService;
 }
 public CommentsController(UserManager <User> userManager, ICommentService commentService, ISupplementService supplementService, IUserService userService)
 {
     this.userManager       = userManager;
     this.commentService    = commentService;
     this.supplementService = supplementService;
     this.userService       = userService;
 }
Exemplo n.º 4
0
 public ProductsOperations(IDietService dietService, IMapper mapper, IPlanService planService, ISupplementService supplementService)
 {
     _dietService       = dietService;
     _planService       = planService;
     _supplementService = supplementService;
     _mapper            = mapper;
 }
Exemplo n.º 5
0
 public OrderController(IOrderService orderService, IOrderLineService orderLineService, ICartSessionService cartSessionService, ISupplementService supplementService, IHttpContextAccessor httpContextAccessor, UserManager <CustomIdentityUser> userManager, IShippingDetailService shippingDetailService)
 {
     _orderService          = orderService;
     _orderLineService      = orderLineService;
     _cartSessionService    = cartSessionService;
     _supplementService     = supplementService;
     _httpContextAccessor   = httpContextAccessor;
     _userManager           = userManager;
     _shippingDetailService = shippingDetailService;
 }
 public SupplementsController(IManagerSupplementService managerSupplementService, IManagerCategoryService managerCategoryService, IManagerSubcategoryService managerSubcategoryService, IManagerManufacturerService managerManufacturerService, ISupplementService supplementService, ICategoryService categoryService, ISubcategoryService subcategoryService, IManufacturerService manufacturerService)
 {
     this.managerSupplementService   = managerSupplementService;
     this.managerCategoryService     = managerCategoryService;
     this.managerSubcategoryService  = managerSubcategoryService;
     this.managerManufacturerService = managerManufacturerService;
     this.supplementService          = supplementService;
     this.categoryService            = categoryService;
     this.subcategoryService         = subcategoryService;
     this.manufacturerService        = manufacturerService;
 }
Exemplo n.º 7
0
        public SupplementTests()
        {
            var mockMapper = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new AutoMapping());
            });

            _mapper               = mockMapper.CreateMapper();
            _dietRepository       = new Mock <IDietRepository>();
            _supplementRepository = new Mock <ISupplementRepository>();
            _supplementService    = new SupplementService(_dietRepository.Object, _supplementRepository.Object);
            _controller           = new SupplementController(_supplementService, _mapper);
        }
Exemplo n.º 8
0
 public AdminController(IExerciseService exerciseService, IExerciseTypeService exerciseTypeService, IHostingEnvironment hostingEnvironment, ISupplementCategoryService supplementCategoryService, ISupplementService supplementService, ISupplementSubCategoryService supplementSubCategoryService, ITrainerService trainerService, IBlogPostService blogPostService, UserManager <CustomIdentityUser> userManager, CustomIdentityContext customIdentityContext, IOrderLineService orderLineService)
 {
     _exerciseService              = exerciseService;
     _exerciseTypeService          = exerciseTypeService;
     _hostingEnvironment           = hostingEnvironment;
     _supplementCategoryService    = supplementCategoryService;
     _supplementService            = supplementService;
     _supplementSubCategoryService = supplementSubCategoryService;
     _trainerService        = trainerService;
     _blogPostService       = blogPostService;
     _userManager           = userManager;
     _customIdentityContext = customIdentityContext;
     _orderLineService      = orderLineService;
 }
Exemplo n.º 9
0
 public SupplementController(ISupplementService supplementService, ISupplementCategoryService supplementCategoryService)
 {
     _supplementService         = supplementService;
     _supplementCategoryService = supplementCategoryService;
 }
Exemplo n.º 10
0
 public SupplementController(ISupplementService supplementService, IMapper mapper)
 {
     _supplementService = supplementService;
     _mapper            = mapper;
 }
Exemplo n.º 11
0
 public SupplementsController(ISupplementService supplementService)
 {
     this.supplementService = supplementService;
 }
Exemplo n.º 12
0
 public OrdersController(UserManager <User> userManager, IOrderService orderService, ISupplementService supplementService)
 {
     this.userManager       = userManager;
     this.orderService      = orderService;
     this.supplementService = supplementService;
 }
 public SupplementsController(IModeratorSupplementService moderatorSupplementService, ISupplementService supplementService)
 {
     this.moderatorSupplementService = moderatorSupplementService;
     this.supplementService          = supplementService;
 }
 public HomeController(ICategoryService categoryService, ISupplementService supplementService)
 {
     this.categoryService   = categoryService;
     this.supplementService = supplementService;
 }
Exemplo n.º 15
0
 public SupplementController(ISupplementService supplementService)
 {
     _supplementService = supplementService;
 }