public async Task ExportPaymentDetailsMethod() { Program.BuildConfiguration(); var data = await PaymentDetailsService.ExportPaymentDetailsAsync(new TeamHttpContext(MockData.httpContext), MockData.year, MockData.month, "csv", MockData.exportPWD).ConfigureAwait(false); string result = data.FileStream.Length > 0 ? "OK" : "ERROR"; Xunit.Assert.Equal("OK", result); }
public async Task GetPaymentDetailsMethod() { Program.BuildConfiguration(); var data = await PaymentDetailsService.GetPaymentDetailsAsync(new TeamHttpContext(MockData.httpContext), MockData.year, MockData.month, 0, 5).ConfigureAwait(false); string result = data.Code == HttpStatusCode.OK ? "OK" : "ERROR"; Xunit.Assert.Equal("OK", result); }