예제 #1
0
 public OrderService(IAssemblyPlanService assemblyservice, IPurchasePlanService purchaseservice, IRepositoryAsync <OrderDetail> orderdetailrepository, IRepositoryAsync <Order> repository, IRepositoryAsync <ProjectNode> projectnoderepository, IOrderAuditPlanService auditplanService, IRepositoryAsync <BOMComponent> bomrepository, IProductionPlanService productionplanservice)
     : base(repository)
 {
     _repository            = repository;
     _projectnoderepository = projectnoderepository;
     _auditplanService      = auditplanService;
     _bomrepository         = bomrepository;
     _productionplanservice = productionplanservice;
     _orderdetailrepository = orderdetailrepository;
     _purchaseservice       = purchaseservice;
     _assemblyservice       = assemblyservice;
 }
 public void Setup()
 {
     _productionPlanService = new ProductionPlanService();
 }
 public ProductionPlansController(IProductionPlanService productionPlanService, IUnitOfWorkAsync unitOfWork)
 {
     _productionPlanService = productionPlanService;
     _unitOfWork            = unitOfWork;
 }
예제 #4
0
 public ProductionPlansController(ILogger <ProductionPlansController> logger, IProductionPlanService productionPlanService, IMapper mapper)
 {
     _logger = logger;
     _productionPlanService = productionPlanService;
     _mapper = mapper;
 }
        public void TestInitialize()
        {
            var loggerMock = new Mock <ILogger <ProductionPlanService> >();

            _service = new ProductionPlanService(loggerMock.Object);
        }
 public ProductionPlansController(IProductionPlanService productionPlanService, IUnitOfWorkAsync unitOfWork)
 {
     _productionPlanService = productionPlanService;
     _unitOfWork = unitOfWork;
 }
예제 #7
0
 public ProductionPlanController(IProductionPlanService productionPlanService, IMapper mapper)
 {
     _productionPlanService = productionPlanService ?? throw new ArgumentNullException(nameof(productionPlanService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }