public WearOutfitService(IOutfitFactory outfitFactory, IOutfitRepository outfitRepository,
     IDateTimeProvider dateTimeProvider)
 {
     _outfitFactory = outfitFactory;
     _outfitRepository = outfitRepository;
     _dateTimeProvider = dateTimeProvider;
 }
        public SqlUnitOfWork()
        {
            _clothesWashingContext = new ClothesWashingContext();

            ClothesRepository = new ClothesSqlRepository(_clothesWashingContext);
            OutfitRepository = new OutfitSqlRepository(_clothesWashingContext);
            WashSessionRepository = new WashSessionSqlRepository(_clothesWashingContext);
        }
 public CartController(IOutfitRepository repo, Cart cartService, OrderEditor orderService,
                       UserManager <Customer> userManager, IHttpContextAccessor httpContextAccessor, IOrderRepository orderRepository, IOrderedOutfitRepository orderedOutfitRepository)
 {
     OutfitRepository             = repo;
     cart                         = cartService;
     this.userManager             = userManager;
     this.httpContextAccessor     = httpContextAccessor;
     signInManager                = signInManager;
     OrderRepository              = orderRepository;
     this.orderedOutfitRepository = orderedOutfitRepository;
 }
Exemplo n.º 4
0
 public ModerationController(IOutfitRepository outfitRepository, IHostingEnvironment hostingEnvironment, IDepartmentRepository departmentRepository,
                             IHttpContextAccessor httpContextAccessor, UserManager <Customer> userManager, IOrderedOutfitRepository orderedOutfitRepository, IFeedbackRepository feedbackRepository)
 {
     OutfitRepository             = outfitRepository;
     HostingEnvironment           = hostingEnvironment;
     this.departmentRepository    = departmentRepository;
     this.httpContextAccessor     = httpContextAccessor;
     this.userManager             = userManager;
     this.orderedOutfitRepository = orderedOutfitRepository;
     this.feedbackRepository      = feedbackRepository;
 }
Exemplo n.º 5
0
 public OrderController(IOrderedOutfitRepository orderedOutfitRepository, IOrderRepository orderRepository, OrderEditor order,
                        IHttpContextAccessor httpContextAccessor, IOutfitRepository OutfitRepository
                        , UserManager <Customer> userManager, IHostingEnvironment hostingEnvironment)
 {
     this.orderedOutfitRepository = orderedOutfitRepository;
     this.orderRepository         = orderRepository;
     this.order = order;
     this.httpContextAccessor = httpContextAccessor;
     this.OutfitRepository    = OutfitRepository;
     this.userManager         = userManager;
     this.hostingEnvironment  = hostingEnvironment;
 }
Exemplo n.º 6
0
 public HomeController(IOutfitRepository OutfitRepository, IHostingEnvironment hostingEnvironment, UserManager <Customer> userManager, IDepartmentRepository departmentRepository,
                       IFeedbackRepository feedbackRepository, IHttpContextAccessor HttpContextAccessor, IOrderRepository orderRepository,
                       IOrderedOutfitRepository orderedOutfitRepository
                       )
 {
     this.OutfitRepository        = OutfitRepository;
     this.hostingEnvironment      = hostingEnvironment;
     this.userManager             = userManager;
     this.departmentRepository    = departmentRepository;
     this.feedbackRepository      = feedbackRepository;
     httpContextAccessor          = HttpContextAccessor;
     this.orderRepository         = orderRepository;
     this.orderedOutfitRepository = orderedOutfitRepository;
 }
Exemplo n.º 7
0
 public FeedbackController(IFeedbackRepository feedbackRepository, IOutfitRepository OutfitRepository, IHttpContextAccessor httpContextAccessor)
 {
     this.feedbackRepository  = feedbackRepository;
     this.OutfitRepository    = OutfitRepository;
     this.httpContextAccessor = httpContextAccessor;
 }
Exemplo n.º 8
0
 public OutfitService(
     IOutfitRepository manOutfitRepository,
     IMapper mapper)
     : base(manOutfitRepository, mapper)
 {
 }