public async Task TestGetAllInsureMasterRecords() { IInsureMasterDA test = new InsureMasterDA(); var result = await test.GetAll(); result.Should().HaveCount(1, "This is awesome"); }
static void Main(string[] args) { IInsureMasterDA test = new InsureMasterDA(); Console.WriteLine("Test"); var task = new Task(async() => { var result = await test.GetAll(); Console.WriteLine("Insure Master Count", result.Count()); }); Console.WriteLine(task.Status.ToString()); // This just prevents the console app from exiting before the async work completes. Task.WaitAll(task); }