public async Task TestMethod_ImportDO_NoDeliOrderType()
        {
            UnitOfWorkTest.FLAG_SAVE = 1;
            SaleOrderRepositoryTest.FLAG_GET_ASYNC         = 1;
            DeliveryOrderRepositoryTest.FLAG_GET_ASYNC     = 0;
            OrderRepositoryTest.FLAG_GET_ASYNC             = 0;
            CarrierVendorRepositoryTest.FLAG_GET_ASYNC     = 1;
            CustomerRepositoryTest.FLAG_GET_ASYNC          = 1;
            DeliveryOrderTypeRepositoryTest.FLAG_GET_ASYNC = 0;
            //OrderRepositoryTest.FLAG_GET_ASYNC_2 = 1;
            //OrderMaterialRepositoryTest.FLAG_GET_ASYNC = 1;
            //MaterialRepositoryTest.FLAG_GET_ASYNC = 1;
            //MaterialRepositoryTest.FLAG_ADD = 0;

            var DoList   = GetSampleDoList();
            var response = await _queueService.ImportDO(DoList);

            UnitOfWorkTest.ResetDummyFlags();
            SaleOrderRepositoryTest.ResetDummyFlags();
            DeliveryOrderRepositoryTest.ResetDummyFlags();
            OrderRepositoryTest.ResetDummyFlags();
            CarrierVendorRepositoryTest.ResetDummyFlags();
            CustomerRepositoryTest.ResetDummyFlags();
            DeliveryOrderTypeRepositoryTest.ResetDummyFlags();

            Assert.AreNotEqual(0, response.errorCode);
        }
        public QueueServiceTest()
        {
            AutoMapper.Mapper.Reset();
            AutoMapperConfig.Configure();

            _unitOfWork                  = new UnitOfWorkTest();
            _gatePassRepository          = new GatePassRepositoryTest();
            _stateRepository             = new StateRepositoryTest();
            _laneRepository              = new LaneRepositoryTest();
            _truckRepository             = new TruckRepositoryTest();
            _queueListRepository         = new QueueListRepositoryTest();
            _RFIDCardRepository          = new RFIDCardRepositoryTest();
            _employeepository            = new EmployeeRepositoryTest();
            _saleOrderRepository         = new SaleOrderRepositoryTest();
            _deliveryOrderRepository     = new DeliveryOrderRepositoryTest();
            _orderRepository             = new OrderRepositoryTest();
            _carrierVendorRepository     = new CarrierVendorRepositoryTest();
            _customerRepository          = new CustomerRepositoryTest();
            _deliveryOrderTypeRepository = new DeliveryOrderTypeRepositoryTest();
            _customerWarehouseRepository = new CustomerWarehouseRepositoryTest();
            _orderMaterialRepository     = new OrderMaterialRepositoryTest();
            _materialRepository          = new MaterialRepositoryTest();
            _driverRepository            = new DriverRepositoryTest();
            //_unitTypeRepository = new UnitTypeRepositoryTest();
            _loadingBayRepository = new LoadingBayRepositoryTest();
            //_commonService = new CommonServiceTest();
            //_purchaseOrderRepository = new PurchaseOrderRepositoryTest();
            //_purchaseOrderTypeRepository = new PurchaseOrderTypeRepositoryTest();
            _plantRepository = new PlantRepositoryTest();
            _queueService    = new QueueService(
                _unitOfWork, _gatePassRepository, _stateRepository, _laneRepository,
                _truckRepository, _queueListRepository, _RFIDCardRepository,
                _employeepository, _saleOrderRepository, _deliveryOrderRepository,
                _orderRepository, _carrierVendorRepository, _customerRepository,
                _deliveryOrderTypeRepository, _customerWarehouseRepository,
                _orderMaterialRepository, _materialRepository, _driverRepository,
                _unitTypeRepository, _loadingBayRepository, _commonService,
                _purchaseOrderRepository, _purchaseOrderTypeRepository,
                _plantRepository
                );
        }