Example #1
0
 public ShipperController(IShipperService shipperService, IAuthorizationService authorizationService,
                          SignInManager <AppUser> signInManager)
 {
     _shipperService       = shipperService;
     _authorizationService = authorizationService;
     _signInManager        = signInManager;
 }
Example #2
0
 public ShipperController(IShipperService shipperService, IOrderService orderService, ICustomerService customerService, IAccountService accountService)
 {
     _shipperService  = shipperService;
     _orderService    = orderService;
     _customerService = customerService;
     _accountService  = accountService;
 }
Example #3
0
 public OrderTableController(ICustomerService customerService, IEmployeeService employeeService, IOrderService orderService, IShipperService shipperService)
 {
     _customerService = customerService;
     _employeeService = employeeService;
     _orderService    = orderService;
     _shipperService  = shipperService;
 }
Example #4
0
 public OrderController(IOrderService orderService, ICustomerService customerService, IShipperService shipperService, IPaymentService paymentService)
 {
     _orderService    = orderService;
     _customerService = customerService;
     _shipperService  = shipperService;
     _paymentService  = paymentService;
 }
Example #5
0
 public AccountController(IAccountService accountService, IShipperService shipperService, IStoreService storeService, ICustomerService customerService, IServiceService serviceService)
 {
     _accountService  = accountService;
     _shipperService  = shipperService;
     _storeService    = storeService;
     _customerService = customerService;
     _serviceService  = serviceService;
 }
Example #6
0
 public OrderController(IOrderService orderService, ISlotService slotService, ICustomerService customerService, IShipperService shipperService, IOrderSService orderServiceService)
 {
     _orderService        = orderService;
     _slotService         = slotService;
     _customerService     = customerService;
     _shipperService      = shipperService;
     _orderServiceService = orderServiceService;
 }
Example #7
0
 public ShipperController(IShipperService shipperService, IOrderService orderService, ICustomerService customerService, IAccountService accountService, IHubContext <CenterHub> hubContext)
 {
     _shipperService  = shipperService;
     _orderService    = orderService;
     _customerService = customerService;
     _accountService  = accountService;
     _hub             = hubContext;
 }
Example #8
0
 public AdminProcessController(IProductService productService, ICategoryService categoryService, IBrandService brandService, IPersonService personService, IShipperService shipperService)
 {
     _productService  = productService;
     _categoryService = categoryService;
     _brandService    = brandService;
     _personService   = personService;
     _shipperService  = shipperService;
 }
Example #9
0
 public CartController(IProductService productService, IOrderService orderService, SignInManager <AppUser> signInManager, UserManager <AppUser> userManager, IUserAdressService userAdressService, IShipperService shipperService)
 {
     this.productService    = productService;
     this.orderService      = orderService;
     this.signInManager     = signInManager;
     this.userManager       = userManager;
     this.userAdressService = userAdressService;
     this.shipperService    = shipperService;
 }
Example #10
0
 public OrderController(IOrderDetailService orderDetailService, IShipperService shipperService, IAddressService addressService, IOrderService orderService, IPaymentService paymentService, IAppUserService appUserService, IProductService productService)
 {
     _orderDetailService = orderDetailService;
     _shipperService     = shipperService;
     _addressService     = addressService;
     _orderService       = orderService;
     _paymentService     = paymentService;
     _appUserService     = appUserService;
     _productService     = productService;
 }
Example #11
0
 public OrderController(IAddressService addressService, UserManager <AppUser> userManager, IShipperService shipperService, IPaymentService paymentService, Cart cart, IOrderService orderService, IOrderDetailService orderDetailService)
 {
     _addressService     = addressService;
     _userManager        = userManager;
     _paymentService     = paymentService;
     _shipperService     = shipperService;
     _cart               = cart;
     _orderService       = orderService;
     _orderDetailService = orderDetailService;
 }
        public ShipperServiceTests()
        {
            _shipperRepository = new Mock <IRepository <Shipper> >();
            _orderRepository   = new Mock <IRepository <Order> >();
            var logger = new Mock <ILogger <ShipperService> >();

            _shipperService = new ShipperService(_shipperRepository.Object,
                                                 _orderRepository.Object,
                                                 logger.Object);
        }
Example #13
0
 public OrderController(IOrderService orderService,
                        IIndex <PaymentType, IPayment> paymentResolver,
                        IShipperService shipperService,
                        IUserService userService)
 {
     _orderService    = orderService;
     _paymentResolver = paymentResolver;
     _shipperService  = shipperService;
     _userService     = userService;
 }
Example #14
0
 public OrderController(IOrderService orderService, ISlotService slotService, ICustomerService customerService, IShipperService shipperService, IOrderSService orderServiceService, IServiceService serviceService, IStoreService storeService, IHubContext <CenterHub> hub)
 {
     _orderService        = orderService;
     _slotService         = slotService;
     _customerService     = customerService;
     _shipperService      = shipperService;
     _orderServiceService = orderServiceService;
     _serviceService      = serviceService;
     _storeService        = storeService;
     _hub = hub;
 }
Example #15
0
 public BaseApiController(
     IUnitOfWork uof, ICategoryService cs,
     IMemberService ms, IOrderService os,
     IOrderDetailService ods, IPaymentService pay,
     IProductService ps, IShipperService ships,
     ISupplierService sups
     )
 {
     this._uof  = uof; this._cs = cs;
     this._ms   = ms; this._os = os;
     this._ods  = ods; this._pays = pay;
     this._ps   = ps; this._ships = ships;
     this._sups = sups;
 }
Example #16
0
 public AllService(
     IUnitOfWork uof, ICategoryService cs, IImageBaseService img, IMemberRoleService mrs, IMemberService ms, IOrderService os,
     IOrderDetailService ods, IPaymentService pay, IProductService ps, IShipperService ships, ISupplierService sups,
     DbContext context
     )
 {
     this._uof     = uof ?? throw new ArgumentNullException();
     this._cs      = cs ?? throw new ArgumentNullException();
     this._img     = img ?? throw new ArgumentNullException();
     this._mrs     = mrs ?? throw new ArgumentNullException();
     this._ms      = ms ?? throw new ArgumentNullException();
     this._os      = os ?? throw new ArgumentNullException();
     this._ods     = ods ?? throw new ArgumentNullException();
     this._pays    = pay ?? throw new ArgumentNullException();
     this._ps      = ps ?? throw new ArgumentNullException();
     this._ships   = ships ?? throw new ArgumentNullException();
     this._sups    = sups ?? throw new ArgumentNullException();
     this._context = context ?? throw new ArgumentException();
 }
Example #17
0
        public ShipperServiceTest()
        {
            var shipperModel = new ShipperModel
            {
                CompanyName = "name",
                Id = "id",
                Phone = "phone",
                ShipperId = 1
            };

            _shipperRepository = new Mock<IMongoReadOnlyRepository<ShipperModel>>();

            _shipperRepository.Setup(x => x.FirstOrDefault(It.IsAny<Expression<Func<ShipperModel, bool>>>()))
                              .Returns(shipperModel);

            _shipperRepository.Setup(x => x.GetMany(It.IsAny<int>(), It.IsAny<int>(), null, null,
                                  It.IsAny<SortDirection>(), It.IsAny<Expression<Func<ShipperModel, object>>[]>()))
                              .Returns(new List<ShipperModel> { shipperModel });

            _shipperService = new ShipperService(_shipperRepository.Object);
        }
Example #18
0
 public ShipmentViewModelFactory(IShipperService shipperService, IMapper mapper)
 {
     _shipperService = shipperService;
     _mapper         = mapper;
 }
Example #19
0
 public CustomerController(IShipperService shipperService)
 {
     this.shipperService = shipperService;
 }
Example #20
0
 public ShipperController(IShipperService shipperService, ICommonService commonService)
 {
     this._shipperService = shipperService;
     _commonService       = commonService;
 }
Example #21
0
 public ShipperController(IShipperService shipperManager)
 {
     _shipperService = shipperManager;
 }
Example #22
0
 public void Setup()
 {
     dataProvider      = new SqlServerDataProvider(ConnectionString);
     shipperRepository = new ShipperRepository(dataProvider);
     shipperService    = new ShipperService(shipperRepository);
 }
Example #23
0
 public SlotController(IShipperService shipperService, ISlotService slotService, IOrderService orderService)
 {
     _shipperService = shipperService;
     _slotService    = slotService;
     _orderService   = orderService;
 }
Example #24
0
 public OrdersController(IOrderService orderService, IShipperService shipperService)
 {
     _orderService   = orderService;
     _shipperService = shipperService;
 }
 public ShipperController(IShipperService shipperService)
 {
     _shipperService = shipperService;
 }
Example #26
0
 public ShipperController(IShipperService ShipperService)
 {
     this.ShipperService = ShipperService;
 }
Example #27
0
 public ShipperController(IShipperService shipperService, IMapper mapper)
 {
     this._mapper         = mapper;
     this._shipperService = shipperService;
 }
Example #28
0
 public ValuesController(IUnitOfWork uof, ICategoryService cs, IMemberService ms, IOrderService os, IOrderDetailService ods, IPaymentService pay, IProductService ps, IShipperService ships, ISupplierService sups) : base(uof, cs, ms, os, ods, pay, ps, ships, sups)
 {
 }
Example #29
0
 public SportNutritionOrdersController(ISportNutritionOrderService sportNutritionOrderService, IShipperService shipperService)
 {
     _sportNutritionOrderService = sportNutritionOrderService ?? throw new ArgumentNullException(nameof(sportNutritionOrderService));
     _shipperService = shipperService ?? throw new ArgumentNullException(nameof(shipperService));
 }
 public ShippersController(IShipperService shipperService, IMapper mapper)
 {
     _shipperService = shipperService;
     _mapper         = mapper;
 }