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 async Task TestMethod_ImportDO_InvalidOrder()
        {
            UnitOfWorkTest.FLAG_SAVE = 1;
            SaleOrderRepositoryTest.FLAG_GET_ASYNC     = 1;
            DeliveryOrderRepositoryTest.FLAG_GET_ASYNC = 1;
            OrderRepositoryTest.FLAG_GET_ASYNC         = 0;

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

            UnitOfWorkTest.ResetDummyFlags();
            SaleOrderRepositoryTest.ResetDummyFlags();
            DeliveryOrderRepositoryTest.ResetDummyFlags();
            OrderRepositoryTest.ResetDummyFlags();

            Assert.AreNotEqual(0, response.errorCode);
        }
        public async Task TestMethod_ImportDO_SONullAndSaveException()
        {
            UnitOfWorkTest.FLAG_SAVE = -1;
            SaleOrderRepositoryTest.FLAG_GET_ASYNC     = 0;
            DeliveryOrderRepositoryTest.FLAG_GET_ASYNC = 1;
            OrderRepositoryTest.FLAG_GET_ASYNC         = 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();
            OrderMaterialRepositoryTest.ResetDummyFlags();
            MaterialRepositoryTest.ResetDummyFlags();
            MaterialRepositoryTest.ResetDummyFlags();

            Assert.AreNotEqual(0, response.errorCode);
        }