Example #1
0
 public UnitOfWork(
     ITestCategoryRepository categoryRepository,
     ITestOrderProductRepository orderProductRepository,
     ITestProductRepository productRepository,
     ITestOrderRepository orderRepository)
 {
     TestCategoryRepository     = categoryRepository;
     TestOrderProductRepository = orderProductRepository;
     TestProductRepository      = productRepository;
     TestOrderRepository        = orderRepository;
 }
Example #2
0
        public TestOrderService(ITestOrderRepository dal, IMapper mapper, IUser httpUser)
        {
            this._dal    = dal;
            base.baseDal = dal;

            _httpUser      = httpUser;
            base._httpUser = httpUser;

            _mapper      = mapper;
            base._mapper = mapper;
        }
Example #3
0
 public UnitOfWork(
     ITestCategoryRepository testCategories,
     ITestProductRepository testProducts,
     ITestOrderRepository testOrders,
     ITestProductCategoryRepository testProductCategories,
     ITestOrderProductRepository testOrderProducts)
 {
     TestCategories        = testCategories;
     TestProducts          = testProducts;
     TestOrders            = testOrders;
     TestProductCategories = testProductCategories;
     TestOrderProducts     = testOrderProducts;
 }
Example #4
0
 public HomeController(ITestOrderRepository orderRepository, IShipmentService shipmentService)
 {
     _orderRepository = orderRepository;
     _shipmentService = shipmentService;
 }
Example #5
0
 public ShipmentService(ITestOrderRepository orderRepository)
 {
     _orderRepository = orderRepository;
 }