コード例 #1
0
        public async Task TestGetAllInsureMasterRecords()
        {
            IInsureMasterDA test = new InsureMasterDA();

            var result = await test.GetAll();
            result.Should().HaveCount(1, "This is awesome");
        }
コード例 #2
0
        public async Task TestGetAllInsureMasterRecords()
        {
            IInsureMasterDA test = new InsureMasterDA();

            var result = await test.GetAll();

            result.Should().HaveCount(1, "This is awesome");
        }
コード例 #3
0
        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);
        }