public async Task Should_Success_Get_Buku_Sub_Beli_Excel_Null_Parameter()
        {
            var            facade = new GarmentInvoiceFacade(_dbContext(GetCurrentMethod()), ServiceProvider);
            GarmentInvoice data   = await dataUtil(facade, GetCurrentMethod()).GetNewDataViewModel(USERNAME);

            GarmentDailyPurchasingReportFacade DataInv = new GarmentDailyPurchasingReportFacade(GetServiceProvider().Object, _dbContext(GetCurrentMethod()));

            DateTime d1 = data.InvoiceDate.DateTime.AddDays(30);
            DateTime d2 = data.InvoiceDate.DateTime.AddDays(30);

            var Response = DataInv.GenerateExcelGDailyPurchasingReport(null, true, null, null, null, null, 7);

            Assert.IsType <System.IO.MemoryStream>(Response);
        }
        public async Task Should_Success_Get_Buku_Sub_Beli_Data()
        {
            var            facade = new GarmentInvoiceFacade(_dbContext(GetCurrentMethod()), ServiceProvider);
            GarmentInvoice data   = await dataUtil(facade, GetCurrentMethod()).GetNewDataViewModel(USERNAME);

            GarmentDailyPurchasingReportFacade DataInv = new GarmentDailyPurchasingReportFacade(GetServiceProvider().Object, _dbContext(GetCurrentMethod()));

            DateTime d1 = data.InvoiceDate.DateTime;
            DateTime d2 = data.InvoiceDate.DateTime;

            var Response = DataInv.GetGDailyPurchasingReport(null, true, null, null, null, null, 7);

            Assert.NotNull(Response.Item1);
        }
Example #3
0
        public async Task Should_Success_Get_Buku_Sub_Beli_Excel_Null_Parameter()
        {
            GarmentDeliveryOrderFacade facadeDO = new GarmentDeliveryOrderFacade(GetServiceProvider().Object, _dbContext(GetCurrentMethod()));
            var datautilDO           = dataUtil(facadeDO, GetCurrentMethod());
            var garmentDeliveryOrder = await Task.Run(() => datautilDO.GetNewData("User"));

            var garmentBeaCukaiFacade = new GarmentBeacukaiFacade(_dbContext(GetCurrentMethod()), GetServiceProvider().Object);
            var datautilBC            = new GarmentBeacukaiDataUtil(datautilDO, garmentBeaCukaiFacade);

            GarmentDailyPurchasingReportFacade DataSJ = new GarmentDailyPurchasingReportFacade(ServiceProvider, _dbContext(GetCurrentMethod()));

            var dataDO = await datautilDO.GetTestData();

            var dataBC = await datautilBC.GetTestData(USERNAME, dataDO);

            DateTime d1 = dataBC.BeacukaiDate.DateTime.AddDays(30);
            DateTime d2 = dataBC.BeacukaiDate.DateTime.AddDays(30);

            var Response = DataSJ.GenerateExcelGDailyPurchasingReport(null, true, null, null, null, null, 7);

            Assert.IsType <System.IO.MemoryStream>(Response);
        }
Example #4
0
        public async Task Should_Success_Get_Buku_Sub_Beli_Data()
        {
            GarmentDeliveryOrderFacade facadeDO = new GarmentDeliveryOrderFacade(GetServiceProvider().Object, _dbContext(GetCurrentMethod()));
            var datautilDO           = dataUtil(facadeDO, GetCurrentMethod());
            var garmentDeliveryOrder = await Task.Run(() => datautilDO.GetNewData("User"));

            var garmentBeaCukaiFacade = new GarmentBeacukaiFacade(_dbContext(GetCurrentMethod()), GetServiceProvider().Object);
            var datautilBC            = new GarmentBeacukaiDataUtil(datautilDO, garmentBeaCukaiFacade);

            GarmentDailyPurchasingReportFacade DataSJ = new GarmentDailyPurchasingReportFacade(ServiceProvider, _dbContext(GetCurrentMethod()));

            var dataDO = await datautilDO.GetTestData();

            var dataBC = await datautilBC.GetTestData(USERNAME, dataDO);

            DateTime d1 = dataBC.BeacukaiDate.DateTime;
            DateTime d2 = dataBC.BeacukaiDate.DateTime;

            var Response = DataSJ.GetGDailyPurchasingReport(null, true, null, null, null, null, 7);

            Assert.NotNull(Response.Item1);
            Assert.NotEqual(-1, Response.Item2);
        }