示例#1
0
        public async Task ReturnsCompanies()
        {
            var access = new OpenDataAccess();

            IEnumerable <Record> records = await access.getAllCompaniesAsync();

            Assert.IsNotNull(records);
        }
示例#2
0
        public async Task OpenDataWorksLikeACharm()
        {
            var access = new OpenDataAccess();

            IEnumerable <Record> records = await access.getAllCompaniesAsync();

            Assert.IsTrue(access.LastResponse.IsSuccessStatusCode, $"L'appel a échoué : {access.LastResponse.StatusCode}");
        }