예제 #1
0
 public ShopController(IArticleService articleService, ICustomerService customerService, IOrderService orderService, IOrderLineService orderLineService)
 {
     _articleService   = articleService;
     _customerService  = customerService;
     _orderService     = orderService;
     _orderLineService = orderLineService;
 }
예제 #2
0
 public OrdersController(IMapper mapper, IOrderService orderService, IOrderLineService orderLineService, ISubscriptionService subscriptionService, ITicketService ticketService)
 {
     _mapper        = mapper;
     _orderService  = orderService;
     _oLService     = orderLineService;
     _ticketService = ticketService;
 }
        public OrderCreateViewModel(IProductService productService, INavigator navigator, IArticleReservationService articleReservationService, IArticleService articleService, IOrderLineService orderLineService,
                                    IOrderService orderService)
        {
            Application.Current.MainWindow.Width  = 1280;
            Application.Current.MainWindow.Height = 720;

            _productService            = productService;
            _navigator                 = navigator;
            _articleReservationService = articleReservationService;
            _articleService            = articleService;
            _orderLineService          = orderLineService;
            _orderService              = orderService;

            if (_navigator.Data != null)
            {
                CustomerResult = (CustomerResult)_navigator.Data;
            }

            Customer = new Model.Customer
            {
                Id          = CustomerResult.Id,
                FirstName   = CustomerResult.FirstName,
                LastName    = CustomerResult.LastName,
                Email       = CustomerResult.Email,
                PhoneNumber = CustomerResult.PhoneNumber
            };

            _ = LoadData();

            InstantiateCommands();
        }
예제 #4
0
 public IndexModel(IConfiguration configuration, IOrderLineService orderLineService, IProductService productService, ICustomerService customerService)
 {
     this.configuration    = configuration;
     this.orderLineService = orderLineService;
     this.productService   = productService;
     this.customerService  = customerService;
 }
 /// <summary></summary>
 public OrderLinesController(
     IUnitOfWorkAsync unitOfWorkAsync,
     IOrderLineService service)
 {
     _unitOfWorkAsync = unitOfWorkAsync;
     _service         = service;
 }
 public MaintenanceController(IArticleService articleService, ICustomerService customerService, IProductService productService, IOrderService orderService, IOrderLineService orderLineService)
 {
     _articleService   = articleService;
     _customerService  = customerService;
     _productService   = productService;
     _orderService     = orderService;
     _orderLineService = orderLineService;
 }
예제 #7
0
 public HomeController(ILogger <HomeController> logger, IArticleService articleService, ICustomerService customerService, IOrderLineService orderLineService, IOrderService orderService, IProductService productService)
 {
     _logger           = logger;
     _articleService   = articleService;
     _customerService  = customerService;
     _orderLineService = orderLineService;
     _orderService     = orderService;
     _productService   = productService;
 }
        public OrderLineControllerTest()
        {
            orderLineService = Mocks.MockOrderLineService.GetOrderLineService();
            var logger = new Mocks.MockLogger <OrderLineController>().CreateLogger();

            orderLineController = new OrderLineController(orderLineService,
                                                          new Mapper(Mocks.MockProductService.GetProductService()),
                                                          logger);
        }
예제 #9
0
 public CartController(ICartService cartService, ICartSessionService sessionService, IProductService productService, UserManager <CustomIdentityUser> userManager, IOrderLineService orderLineService, IOrderService orderService)
 {
     _cartService      = cartService;
     _sessionService   = sessionService;
     _productService   = productService;
     _userManager      = userManager;
     _orderLineService = orderLineService;
     _orderService     = orderService;
 }
예제 #10
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;
 }
예제 #11
0
        public OrderDetailViewModel(IOrderLineService orderLineService, INavigator navigator)
        {
            _orderLineService = orderLineService;
            _navigator        = navigator;

            if (_navigator.Data != null)
            {
                OrderResult = (OrderResult)_navigator.Data;
            }

            _ = LoadData();

            InstantiateCommands();
        }
예제 #12
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;
 }
 public ShopController(IMapper mapper, IMatchService matchService, ITeamsService teamsService, IMatchStadiumLocationService mslService
                       , ICompetitionsService competitionsService, ILocationsService locationsService, IOrderService orderService, IOrderLineService orderLineService,
                       ITicketService ticketService, ITeamCompetitionLocationService tclService, ISubscriptionService subscriptionService, IEmailSender emailSender)
 {
     _mapper              = mapper;
     _matchService        = matchService;
     _teamsService        = teamsService;
     _mslService          = mslService;
     _competitionsService = competitionsService;
     _locationsService    = locationsService;
     _orderLineService    = orderLineService;
     _orderService        = orderService;
     _ticketService       = ticketService;
     _tclService          = tclService;
     _subscriptionService = subscriptionService;
     _emailSender         = emailSender;
 }
예제 #14
0
 public DetailModel(IOrderLineService orderLineService, IOrderService orderService)
 {
     this.orderLineService = orderLineService;
     this.orderService     = orderService;
 }
예제 #15
0
 public HomeController(IOrderHeaderService orderHeaderService, IOrderLineService orderLineService, IMapper mapper)
 {
     _orderHeaderService = orderHeaderService ?? throw new ArgumentNullException(nameof(orderHeaderService));
     _orderLineService   = orderLineService ?? throw new ArgumentNullException(nameof(orderLineService));
     _mapper             = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
예제 #16
0
 public OrderLinesController(IOrderLineService orderlineService, IMapper mapper, ApplicationDbContext db)
 {
     _orderlineService = orderlineService;
     _mapper           = mapper;
     _db = db;
 }
예제 #17
0
 public OrderLineServiceTest()
 {
     context          = mockFactory.InitializeContext();
     orderLineService = new OrderLineService(context);
     orderService     = new OrderService(context, orderLineService);
 }
예제 #18
0
 public OrderService(EarlessContext context, IOrderLineService orderLineService)
 {
     this.context          = context;
     this.orderLineService = orderLineService;
 }
예제 #19
0
 public OrderLineController(IOrderLineService orderLineService, Mapper mapper, ILogger <OrderLineController> logger)
 {
     this.orderLineService = orderLineService;
     this.mapper           = mapper;
     this.logger           = logger;
 }
 public OrderLineController(IOrderLineService orderLineService)
 {
     _orderService = orderLineService;
 }