public async Task Should_Success_GeneratePdf() { CreditorAccountService service = new CreditorAccountService(GetServiceProvider().Object, _dbContext(GetCurrentMethod())); var data = _dataUtil(service).GetBankExpenditureNotePostedViewModel(); var unitData = _dataUtil(service).GetNewData_UnitReceiptNotePostedViewModel(); data.SupplierCode = unitData.SupplierCode; data.SupplierName = unitData.SupplierName; data.InvoiceNo = unitData.InvoiceNo; data.Mutation = unitData.DPP + unitData.PPN; var tempResponse = await service.CreateFromUnitReceiptNoteAsync(unitData); var Response = await service.CreateFromBankExpenditureNoteAsync(data); var reportResponse = service.GeneratePdf(data.SupplierName, data.Date.Month, data.Date.Year, 7); Assert.True(0 < reportResponse.Count()); }