コード例 #1
0
        private void Init()
        {
            var context = new OmsContext();

            _orderRepository            = new OrderRepository(context);
            _customerLocationRepository = new CustomerLocationRepository(context);
            var customerRepository = new CustomerRepository(context);

            _customerProductDataRepository = new CustomerProductDataRepository(context);
            _orderService                    = new OrderService(_orderRepository, customerRepository, _customerLocationRepository, _coldWeightRepository);
            _orderDetailService              = new OrderDetailService(_orderDetailRepository, _orderRepository, _productRepository, _customerLocationRepository, new SpeciesRepository(context), _customerProductDataRepository);
            _labelService                    = new LabelService();
            _labelCreateService              = new LabelCreateService();
            _productRepository               = new ProductRepository(context);
            _coldWeightRepository            = new ColdWeightEntryRepository(context);
            _offalRepository                 = new OffalRepository(context);
            _orderComboRepository            = new OrderComboRepository(context);
            _orderOffalRepository            = new OrderOffalRepository(context);
            _orderDetailRepository           = new OrderDetailRepository(context);
            _animalOrderDetailRepository     = new AnimalOrderDetailRepository(context);
            _coldWeightEntryRepository       = new ColdWeightEntryRepository(context);
            _qualityGradeRepository          = new QualityGradeRepository(context);
            _animalLabelRepository           = new AnimalLabelRepository(context);
            _coldWeightEntryDetailRepository = new ColdWeightEntryDetailRepository(context);
        }
コード例 #2
0
 public ShopFloorController(IOrderRepository orderRepository,
                            IOrderDetailRepository orderDetailRepository,
                            IOrderOffalRepository orderOffalRepository,
                            IOrderComboRepository orderComboRepository)
 {
     _orderRepository       = orderRepository;
     _orderDetailRepository = orderDetailRepository;
     _orderOffalRepository  = orderOffalRepository;
     _orderComboRepository  = orderComboRepository;
 }