예제 #1
0
        public async Task Get_Success(string url)
        {
            var apiClient = await _factory.CreateAuthClientAsync(); //get authorized client to inmemory data.api server

            var response = await apiClient.GetAsync(url);

            response.EnsureSuccessStatusCode();
            Assert.Equal("application/json; charset=utf-8", response.Content.Headers.ContentType.ToString());
        }