Exemple #1
0
        public async Task Test_Get_OData()
        {
            var client   = new TestLookupClientProvider().Client;
            var response = await client.GetAsync("api/District?$select=name,id");

            response.EnsureSuccessStatusCode();

            Assert.Equal(HttpStatusCode.OK, response.StatusCode);
        }
        public async Task Test_Get_All()
        {
            var client   = new TestLookupClientProvider().Client;
            var response = await client.GetAsync("api/City");

            response.EnsureSuccessStatusCode();

            Assert.Equal(HttpStatusCode.OK, response.StatusCode);
        }