public void Should_Success_GetReport() { var dbContext = _dbContext(GetCurrentMethod()); var facade = new UnitPaymentOrderPaidStatusReportFacade(dbContext); var results = facade.GetReport(25, 1, "{}", null, null, null, "IMPORT", null, "LUNAS", null, null, null, null, 0); var results2 = facade.GetReport(25, 1, "{}", null, null, null, "LOCAL", null, "SUDAH BAYAR DPP+PPN", DateTimeOffset.Now, DateTimeOffset.Now, DateTimeOffset.Now, DateTimeOffset.Now, 0); var results3 = facade.GetReport(25, 1, "{}", null, null, null, null, null, "SUDAH BAYAR PPH", DateTimeOffset.Now, DateTimeOffset.Now, DateTimeOffset.Now, DateTimeOffset.Now, 0); var results4 = facade.GetReport(25, 1, "{}", null, null, null, null, null, "BELUM BAYAR", null, null, null, null, 0); Assert.NotNull(results); Assert.NotNull(results2); Assert.NotNull(results3); }
public void Should_Success_Get_Data_BELUM_BAYAR() { UnitPaymentOrderPaidStatusReportFacade facade = new UnitPaymentOrderPaidStatusReportFacade(_dbContext(GetCurrentMethod())); ReadResponse response = facade.GetReport(25, 1, "{}", "", "", "", "BELUM BAYAR", new DateTimeOffset(), new DateTimeOffset(), 0); Assert.NotEqual(null, response); }
public void Should_Success_Get_Data_With_Params() { UnitPaymentOrderPaidStatusReportFacade facade = new UnitPaymentOrderPaidStatusReportFacade(_dbContext(GetCurrentMethod())); ReadResponse response = facade.GetReport(25, 1, "{}", "", "", "", null, null, null, 0); Assert.NotEqual(null, response); }
public async Task Should_Success_GetReport_BELUM_BAYAR() { var dbContext = _dbContext(GetCurrentMethod()); var unitPaymentOrderFacade = new UnitPaymentOrderFacade(GetServiceProvider(GetCurrentMethod()).Object, dbContext); var modelLocalSupplier = await _dataUtil(unitPaymentOrderFacade, dbContext, GetCurrentMethod()).GetNewData(); var responseLocalSupplier = await unitPaymentOrderFacade.Create(modelLocalSupplier, USERNAME, false); var purchasingDocumentExpeditionFacade = new PurchasingDocumentExpeditionFacade(GetServiceProvider(GetCurrentMethod()).Object, dbContext); var sendToVerificationDataUtil = new SendToVerificationDataUtil(purchasingDocumentExpeditionFacade); var purchasingDocumentExpedition = sendToVerificationDataUtil.GetNewData(modelLocalSupplier); PurchasingDocumentExpedition model = purchasingDocumentExpedition; await purchasingDocumentExpeditionFacade.SendToVerification(new List <PurchasingDocumentExpedition>() { model }, "Unit Test"); var facade = new UnitPaymentOrderPaidStatusReportFacade(dbContext); var dateTo = modelLocalSupplier.Date; var dateFrom = modelLocalSupplier.Date; var dateToDue = modelLocalSupplier.DueDate; var dateFromDue = modelLocalSupplier.DueDate; var results = facade.GetReport(25, 1, "{}", modelLocalSupplier.UPONo, modelLocalSupplier.SupplierCode, modelLocalSupplier.DivisionCode, "", "", "BELUM BAYAR", dateFromDue, dateToDue, dateFrom, dateTo, 1); // var results = await facade.GetReport(25,1,"{}",modelLocalSupplier.UPONo, modelLocalSupplier.SupplierCode, modelLocalSupplier.DivisionCode, null, dateFromDue, dateToDue, dateFrom, dateTo, 1); Assert.NotNull(results.Data); }
public void Should_Success_Get_Data_SUDAH_BAYAR_DPP_PPN() { UnitPaymentOrderPaidStatusReportFacade facade = new UnitPaymentOrderPaidStatusReportFacade(_dbContext(GetCurrentMethod())); ReadResponse <object> response = facade.GetReport(25, 1, "{}", "", "", "", "SUDAH BAYAR DPP+PPN", new DateTimeOffset(), new DateTimeOffset(), 0); Assert.NotEqual(null, response); }
public async void Should_Success_Get_Data() { var numberGeneratorMock = new Mock <IBankDocumentNumberGenerator>(); numberGeneratorMock.Setup(p => p.GenerateDocumentNumber(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>())) .ReturnsAsync("TEST"); BankExpenditureNoteFacade facadeBEN = new BankExpenditureNoteFacade(_dbContext(GetCurrentMethod()), numberGeneratorMock.Object); await _dataUtilBEN(facadeBEN, GetCurrentMethod()).GetTestData(); PPHBankExpenditureNoteFacade facadeBENPPH = new PPHBankExpenditureNoteFacade(_dbContext(GetCurrentMethod()), numberGeneratorMock.Object); await _dataUtilBENPPH(facadeBENPPH, GetCurrentMethod()).GetTestData(); UnitPaymentOrderPaidStatusReportFacade facade = new UnitPaymentOrderPaidStatusReportFacade(_dbContext(GetCurrentMethod())); ReadResponse response = facade.GetReport(25, 1, "{}", null, null, null, null, null, null, 0); Assert.NotEqual(null, response); }