示例#1
0
 public BasketController(IBasketViewModelService basketViewModelService, SignInManager <ApplicationUser> signInManager, IBasketService basketService, IOrderService orderService)
 {
     _basketViewModelService = basketViewModelService;
     _signInManager          = signInManager;
     _basketService          = basketService;
     this._orderService      = orderService;
 }
示例#2
0
 public BasketController(IBasketViewModelService basketViewModelService, IBasketService basketService, IOrderService orderService, IOrderViewModelService orderViewModelService)
 {
     _basketViewModelService = basketViewModelService;
     _basketService          = basketService;
     _orderService           = orderService;
     _orderViewModelService  = orderViewModelService;
 }
示例#3
0
 public MainIndexModel(IBasketService basketService, IBasketViewModelService basketViewModelService,
                       SignInManager <ApplicationUser> signInManager)
 {
     _basketService          = basketService;
     _basketViewModelService = basketViewModelService;
     _signInManager          = signInManager;
 }
示例#4
0
 public IndexModel(IBasketService basketService,
                   IBasketViewModelService basketViewModelService,
                   IRepository <CatalogItem> itemRepository)
 {
     _basketService          = basketService;
     _basketViewModelService = basketViewModelService;
     _itemRepository         = itemRepository;
 }
示例#5
0
 public OrderController(IBasketService basketService, SignInManager <ApplicationUser> signInManager, IOrderService orderService, IBasketViewModelService basketViewModelService, IMediator mediator)
 {
     this._basketService          = basketService;
     this._signInManager          = signInManager;
     this._orderService           = orderService;
     this._basketViewModelService = basketViewModelService;
     this._mediator = mediator;
 }
 public BasketController(IRepository <Basket> basketRepository, IBasketViewModelService basketViewModelService, IOrderService orderService, IBasketService basketService, ILogger <Basket> logger)
 {
     _basketRepository       = basketRepository;
     _logger                 = logger;
     _basketViewModelService = basketViewModelService;
     _orderService           = orderService;
     _basketService          = basketService;
 }
 public PaymentController(SignInManager <ApplicationUser> signInManager,
                          IBasketViewModelService basketViewModelService,
                          IConfiguration config)
 {
     _signInManager          = signInManager;
     _basketViewModelService = basketViewModelService;
     _config = config;
 }
示例#8
0
 public BasketItemController(
     IMapper mapper,
     IBasketService basketService,
     IBasketViewModelService basketViewModelService)
 {
     _mapper                 = mapper;
     _basketService          = basketService;
     _basketViewModelService = basketViewModelService;
 }
示例#9
0
 public BasketController(IBasketService basketService, IBasketViewModelService basketViewModelService, IOrderService orderService, IUriComposer uriComposer, SignInManager <ApplicationUser> signInManager, IAppLogger <BasketController> logger)
 {
     this._basketService          = basketService;
     this._uriComposer            = uriComposer;
     this._signInManager          = signInManager;
     this._logger                 = logger;
     this._orderService           = orderService;
     this._basketViewModelService = basketViewModelService;
 }
示例#10
0
 public LoginModel(SignInManager <ApplicationUser> signInManager,
                   ILogger <LoginModel> logger,
                   UserManager <ApplicationUser> userManager, IBasketViewModelService basketViewModelService)
 {
     _userManager            = userManager;
     _basketViewModelService = basketViewModelService;
     _signInManager          = signInManager;
     _logger = logger;
 }
示例#11
0
 public Step2Model(ICustomizeViewModelService service,
                   UserManager <ApplicationUser> userManager,
                   SignInManager <ApplicationUser> signInManager,
                   IBasketViewModelService basketViewModelService)
 {
     _service                = service;
     _userManager            = userManager;
     _signInManager          = signInManager;
     _basketViewModelService = basketViewModelService;
 }
示例#12
0
 public CheckoutModel(IBasketService basketService,
                      IBasketViewModelService basketViewModelService,
                      SignInManager <ApplicationUser> signInManager,
                      IOrderService orderService)
 {
     _basketService          = basketService;
     _signInManager          = signInManager;
     _orderService           = orderService;
     _basketViewModelService = basketViewModelService;
 }
示例#13
0
 public IndexModel(IBasketService basketService,
                   IBasketViewModelService basketViewModelService,
                   IUriComposer uriComposer,
                   SignInManager <ApplicationUser> signInManager)
 {
     _basketService          = basketService;
     _uriComposer            = uriComposer;
     _signInManager          = signInManager;
     _basketViewModelService = basketViewModelService;
 }
示例#14
0
 public IndexModel(IWishlistService wishlistService,
                   IWishlistViewModelService wishlistViewModelService,
                   IBasketViewModelService basketViewModelService,
                   SignInManager <ApplicationUser> signInManager)
 {
     _wishlistService          = wishlistService;
     _signInManager            = signInManager;
     _wishlistViewModelService = wishlistViewModelService;
     _basketViewModelService   = basketViewModelService;
 }
示例#15
0
 public CheckoutModel(IBasketService basketService,
                      IBasketViewModelService basketViewModelService,
                      SignInManager <ApplicationUser> signInManager,
                      IQuoteService quoteService)
 {
     _basketService          = basketService;
     _signInManager          = signInManager;
     _quoteService           = quoteService;
     _basketViewModelService = basketViewModelService;
 }
 public BasketController(
     IMapper mapper,
     SignInManager <ApplicationUser> signInManager,
     IBasketService basketService,
     IBasketViewModelService basketViewModelService)
 {
     _mapper                 = mapper;
     _signInManager          = signInManager;
     _basketService          = basketService;
     _basketViewModelService = basketViewModelService;
 }
示例#17
0
 public IndexModel(IBasketService basketService,
                   IBasketViewModelService basketViewModelService,
                   IUriComposer uriComposer,
                   SignInManager <ApplicationUser> signInManager,
                   ILoggerFactory loggerFactory)
 {
     _basketService          = basketService;
     _uriComposer            = uriComposer;
     _signInManager          = signInManager;
     _basketViewModelService = basketViewModelService;
     _logger = loggerFactory.CreateLogger <BasketViewModel>();
 }
示例#18
0
 public RegisterModel(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ILogger <RegisterModel> logger,
     IEmailSender emailSender, IBasketViewModelService basketViewModelService)
 {
     _userManager            = userManager;
     _signInManager          = signInManager;
     _logger                 = logger;
     _emailSender            = emailSender;
     _basketViewModelService = basketViewModelService;
 }
示例#19
0
 public IndexModel(IBasketService basketService,
                   IBasketViewModelService basketViewModelService,
                   SignInManager <ApplicationUser> signInManager,
                   IStoreService storeService,
                   IOrderService orderServcie
                   )
 {
     _basketService          = basketService;
     _signInManager          = signInManager;
     _basketViewModelService = basketViewModelService;
     _storeService           = storeService;
     _orderService           = orderServcie;
 }
示例#20
0
 public CheckoutModel(IBasketService basketService,
                      IBasketViewModelService basketViewModelService,
                      UserManager <ApplicationUser> userManager,
                      SignInManager <ApplicationUser> signInManager,
                      IOrderService orderService, IEmailSender emailSender)
 {
     _basketService          = basketService;
     _userManager            = userManager;
     _signInManager          = signInManager;
     _orderService           = orderService;
     _basketViewModelService = basketViewModelService;
     _emailSender            = emailSender;
 }
示例#21
0
 public BasketController(IBasketService basketService,
                         IBasketViewModelService basketViewModelService,
                         IOrderService orderService,
                         IUriComposer uriComposer,
                         SignInManager <User> signInManager,
                         IAppLogger <BasketController> logger)
 {
     _basketService          = basketService;
     _uriComposer            = uriComposer;
     _signInManager          = signInManager;
     _logger                 = logger;
     _orderService           = orderService;
     _basketViewModelService = basketViewModelService;
 }
示例#22
0
 public IndexModel(IBasketService basketService,
                   IBasketViewModelService basketViewModelService,
                   IUriComposer uriComposer,
                   SignInManager <ApplicationUser> signInManager,
                   IAppLogger <IndexModel> logger,
                   IOrderService orderService)
 {
     _basketService          = basketService;
     _uriComposer            = uriComposer;
     _signInManager          = signInManager;
     _logger                 = logger;
     _orderService           = orderService;
     _basketViewModelService = basketViewModelService;
 }
        private readonly IBasketViewModelService _basketViewModelService; // @issue@I02

        public BasketController(IBasketService basketService,             // @issue@I02
                                IBasketViewModelService basketViewModelService,
                                IOrderService orderService,
                                IUriComposer uriComposer,
                                SignInManager <ApplicationUser> signInManager,
                                IAppLogger <BasketController> logger)
        {
            _basketService          = basketService;          // @issue@I02
            _uriComposer            = uriComposer;            // @issue@I02
            _signInManager          = signInManager;          // @issue@I02
            _logger                 = logger;                 // @issue@I02
            _orderService           = orderService;           // @issue@I02
            _basketViewModelService = basketViewModelService; // @issue@I02
        }
示例#24
0
 public CheckoutModel(IBasketService basketService,
                      IBasketViewModelService basketViewModelService,
                      SignInManager <ApplicationUser> signInManager,
                      IOrderService orderService,
                      IAppLogger <CheckoutModel> logger,
                      IConfiguration config)
 {
     _basketService          = basketService;
     _signInManager          = signInManager;
     _orderService           = orderService;
     _basketViewModelService = basketViewModelService;
     _logger   = logger;
     PublicKey = config["Stripe:PublicKey"].ToString();
 }
示例#25
0
 public TransferItemToBasketModel(IWishlistService wishlistService,
                                  IAsyncRepository <CatalogItem> catalogItemRepository,
                                  IWishlistViewModelService wishlistViewModelService,
                                  IBasketViewModelService basketViewModelService,
                                  IBasketService basketService,
                                  SignInManager <ApplicationUser> signInManager
                                  )
 {
     _wishlistService          = wishlistService;
     _signInManager            = signInManager;
     _catalogItemRepository    = catalogItemRepository;
     _wishlistViewModelService = wishlistViewModelService;
     _basketViewModelService   = basketViewModelService;
     _basketService            = basketService;
 }
示例#26
0
 public BasketController(IBasketService basketService,
                         IBasketViewModelService basketViewModelService,
                         IOrderService orderService,
                         SignInManager <ApplicationUser> signInManager,
                         IFraudProtectionService fraudProtectionService,
                         IHttpContextAccessor contextAccessor,
                         UserManager <ApplicationUser> userManager)
 {
     _basketService          = basketService;
     _signInManager          = signInManager;
     _orderService           = orderService;
     _basketViewModelService = basketViewModelService;
     _fraudProtectionService = fraudProtectionService;
     _contextAccessor        = contextAccessor;
     _userManager            = userManager;
 }
示例#27
0
 public CheckoutModel(IBasketService basketService,
                      IBasketViewModelService basketViewModelService,
                      UserManager <ApplicationUser> userManager,
                      SignInManager <ApplicationUser> signInManager,
                      IEmailSender emailSender,
                      IOptions <EmailSettings> settings,
                      IMailChimpService mailChimpService)
 {
     _basketService          = basketService;
     _userManager            = userManager;
     _signInManager          = signInManager;
     _basketViewModelService = basketViewModelService;
     _emailSender            = emailSender;
     _mailChimpService       = mailChimpService;
     _settings = settings.Value;
 }
示例#28
0
 public BasketController(IBasketService basketService,
                         IBasketViewModelService basketViewModelService,
                         OrderService orderService,
                         IUriComposer uriComposer,
                         SignInManager <ApplicationUser> signInManager,
                         IAppLogger <BasketController> logger,
                         IConfiguration configuration)
 {
     _basketService          = basketService;
     _uriComposer            = uriComposer;
     _signInManager          = signInManager;
     _logger                 = logger;
     _orderService           = orderService;
     _basketViewModelService = basketViewModelService;
     _configuration          = configuration;
 }
示例#29
0
 public CheckoutStep2Model(IBasketService basketService,
                           IBasketViewModelService basketViewModelService,
                           SignInManager <ApplicationUser> signInManager,
                           UserManager <ApplicationUser> userManager,
                           IAccountService accountService,
                           IOrderService orderService,
                           IEmailSender emailSender,
                           IOptions <EmailSettings> settings)
 {
     _basketService          = basketService;
     _basketViewModelService = basketViewModelService;
     _signInManager          = signInManager;
     _userManager            = userManager;
     _accountService         = accountService;
     _orderService           = orderService;
     _emailSender            = emailSender;
     _settings = settings.Value;
 }
示例#30
0
 public IndexModel(IWishlistService wishlistService,
                   IAsyncRepository <WishlistItem> wishListItemsRepo,
                   IAsyncRepository <CatalogItem> catalogItemsRepo,
                   IBasketService basketService,
                   IBasketViewModelService basketViewModelService,
                   IWishlistViewModelService wishlistViewModelService,
                   SignInManager <ApplicationUser> signInManager,
                   IAppLogger <WishlistService> logger)
 {
     _wishlistService          = wishlistService;
     _signInManager            = signInManager;
     _wishlistViewModelService = wishlistViewModelService;
     _basketService            = basketService;
     _basketViewModelService   = basketViewModelService;
     _wishListItemsRepo        = wishListItemsRepo;
     _catalogItemsRepo         = catalogItemsRepo;
     _logger = logger;
 }