public async Task Should_Success_Get_Buku_Sub_Beli_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.GetGDailyPurchasingReport(null, true, null, null, null, null, 7);

            Assert.NotNull(Response.Item1);
        }
Example #2
0
        public async Task Should_Success_Get_Buku_Sub_Beli_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.GetGDailyPurchasingReport(null, true, null, null, null, null, 7);

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