예제 #1
0
        public async Task Should_Success_Get_Keluar_BP_Report_Excel_By_User_Null_Parameter()
        {
            GarmentUnitReceiptNoteFacade facade = new GarmentUnitReceiptNoteFacade(GetServiceProvider(), _dbContext(GetCurrentMethod()));

            GarmentDeliveryOrderFacade facadeDO = new GarmentDeliveryOrderFacade(GetServiceProvider(), _dbContext(GetCurrentMethod()));
            var datautilDO = dataUtilDO(facadeDO, GetCurrentMethod());

            var garmentunitreceiptnoteFacade = new GarmentUnitReceiptNoteFacade(GetServiceProvider(), _dbContext(GetCurrentMethod()));
            var datautilBon = new GarmentUnitReceiptNoteDataUtil(garmentunitreceiptnoteFacade, datautilDO);

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

            MonitoringCentralBillExpenditureFacade KeluarBP = new MonitoringCentralBillExpenditureFacade(_dbContext(GetCurrentMethod()));

            var dataDO = await datautilDO.GetTestData();

            var dataBon = await datautilBon.GetTestData();

            var dataBC = await datautilBC.GetTestData(USERNAME);

            DateTime d1 = dataBon.ReceiptDate.DateTime.AddDays(30);
            DateTime d2 = dataBon.ReceiptDate.DateTime.AddDays(30);

            var Response = KeluarBP.GenerateExcelMonitoringKeluarBonPusatByUser(d1, d2, 1, 25, "{}", 7);

            Assert.IsType(typeof(System.IO.MemoryStream), Response);
        }
예제 #2
0
        public async Task Should_Success_Get_Keluar_BP_Report_Data_By_User()
        {
            GarmentUnitReceiptNoteFacade facade = new GarmentUnitReceiptNoteFacade(GetServiceProvider(), _dbContext(GetCurrentMethod()));

            GarmentDeliveryOrderFacade facadeDO = new GarmentDeliveryOrderFacade(GetServiceProvider(), _dbContext(GetCurrentMethod()));
            var datautilDO = dataUtilDO(facadeDO, GetCurrentMethod());

            var garmentunitreceiptnoteFacade = new GarmentUnitReceiptNoteFacade(GetServiceProvider(), _dbContext(GetCurrentMethod()));
            var datautilBon = new GarmentUnitReceiptNoteDataUtil(garmentunitreceiptnoteFacade, datautilDO);

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

            MonitoringCentralBillExpenditureFacade KeluarBP = new MonitoringCentralBillExpenditureFacade(_dbContext(GetCurrentMethod()));

            var dataDO = await datautilDO.GetTestData();

            var dataBon = await datautilBon.GetTestData();

            var dataBC = await datautilBC.GetTestData(USERNAME);

            var Response = KeluarBP.GetMonitoringKeluarBonPusatByUserReport(dataBon.ReceiptDate.DateTime, dataBon.ReceiptDate.DateTime, 1, 25, "{}", 7);

            Assert.NotNull(Response.Item1);
        }