public async Task Get_payments_result_ok() { // Act var result = await controller.GetPayments(); // Assert OkObjectResult actionResult = Assert.IsType <OkObjectResult>(result); Assert.NotNull(actionResult); List <PaymentIntentInformation> payments = (List <PaymentIntentInformation>)actionResult.Value; Assert.True(payments.Count > 0); Dispose(); }