public async void InvokeTest_RunExecutor_ReturnsSuccess() { //Arrange var executor = new HealthCheckExecutor(); //Act var results = await executor.RunTests(); //Assert results.Count.Should().Be(3); }
static void Main(string[] args) { var executor = new HealthCheckExecutor(); var results = executor.RunTests().Result; foreach (var result in results) { Console.WriteLine($"Result: {JsonConvert.SerializeObject(result)}"); } Console.ReadKey(); }