public async void Should_Success_Get_Excel_No_DeliveryOrders()
        {
            var mockServiceProvider = GetMockServiceProvider();

            var dbContext = GetDbContext(GetCurrentMethod());

            var garmentPurchaseRequestFacade   = new GarmentPurchaseRequestFacade(mockServiceProvider.Object, dbContext);
            var garmentPurchaseRequestDataUtil = new GarmentPurchaseRequestDataUtil(garmentPurchaseRequestFacade);
            var garmentPurchaseRequestData     = garmentPurchaseRequestDataUtil.GetNewData();

            var garmentInternalPurchaseOrderFacade   = new GarmentInternalPurchaseOrderFacade(dbContext);
            var garmentInternalPurchaseOrderDataUtil = new GarmentInternalPurchaseOrderDataUtil(garmentInternalPurchaseOrderFacade, garmentPurchaseRequestDataUtil);
            var garmentInternalPurchaseOrderData     = await garmentInternalPurchaseOrderDataUtil.GetNewData(garmentPurchaseRequestData);

            var garmentExternalPurchaseOrderFacade   = new GarmentExternalPurchaseOrderFacade(mockServiceProvider.Object, dbContext);
            var garmentExternalPurchaseOrderDataUtil = new GarmentExternalPurchaseOrderDataUtil(garmentExternalPurchaseOrderFacade, garmentInternalPurchaseOrderDataUtil);
            var garmentExternalPurchaseOrderData     = await garmentExternalPurchaseOrderDataUtil.GetDataForDo2(garmentInternalPurchaseOrderData);

            await garmentExternalPurchaseOrderDataUtil.GetTestDataForDo2(garmentExternalPurchaseOrderData);

            var facade = new MonitoringROMasterFacade(mockServiceProvider.Object, dbContext);

            var Response = facade.GetExcel(garmentPurchaseRequestData.Id);

            Assert.NotNull(Response.Item2);
        }
        private async Task <DataUtilResult> GetDataUtil(GarmentPOMasterDistributionFacade facade, PurchasingDbContext dbContext)
        {
            var mockServiceProvider            = GetMockServiceProvider();
            var garmentPurchaseRequestFacade   = new GarmentPurchaseRequestFacade(mockServiceProvider.Object, dbContext);
            var garmentPurchaseRequestDataUtil = new GarmentPurchaseRequestDataUtil(garmentPurchaseRequestFacade);
            var garmentPurchaseRequestData     = garmentPurchaseRequestDataUtil.GetNewData();

            var garmentInternalPurchaseOrderFacade   = new GarmentInternalPurchaseOrderFacade(dbContext);
            var garmentInternalPurchaseOrderDataUtil = new GarmentInternalPurchaseOrderDataUtil(garmentInternalPurchaseOrderFacade, garmentPurchaseRequestDataUtil);
            var garmentInternalPurchaseOrderData     = await garmentInternalPurchaseOrderDataUtil.GetNewData(garmentPurchaseRequestData);

            var garmentExternalPurchaseOrderFacade   = new GarmentExternalPurchaseOrderFacade(mockServiceProvider.Object, dbContext);
            var garmentExternalPurchaseOrderDataUtil = new GarmentExternalPurchaseOrderDataUtil(garmentExternalPurchaseOrderFacade, garmentInternalPurchaseOrderDataUtil);
            var garmentExternalPurchaseOrderData     = await garmentExternalPurchaseOrderDataUtil.GetDataForDo2(garmentInternalPurchaseOrderData);

            var garmentDeliveryOrderFacade   = new GarmentDeliveryOrderFacade(mockServiceProvider.Object, dbContext);
            var garmentDeliveryOrderDataUtil = new GarmentDeliveryOrderDataUtil(garmentDeliveryOrderFacade, garmentExternalPurchaseOrderDataUtil);
            var garmentDeliveryOrderData     = await garmentDeliveryOrderDataUtil.GetNewData4(garmentExternalPurchaseOrderData);

            return(new DataUtilResult(new BasicDataUtil(facade, garmentDeliveryOrderDataUtil), garmentPurchaseRequestData, garmentInternalPurchaseOrderData, garmentExternalPurchaseOrderData, garmentDeliveryOrderData));
        }