public async void Get_ById_ReadAs_test() { Product product = FixtureRepository.Build <Product>().Without(p => p.Id).Create(); await _client.PostAsync("api/products", product); IHttwrapResponse response = await _client.GetAsync("api/products/1"); Product result = response.ReadAs <Product>(); result.Should().NotBeNull(); }
public async Task <List <WriterResponse> > GetWriters() { IHttwrapResponse response = await _httwrapClient.GetAsync("writers"); return(response.ReadAs <List <WriterResponse> >()); }
public async Task <List <ArticleResponse> > GetArticles() { IHttwrapResponse response = await _httwrapClient.GetAsync("articles"); return(response.ReadAs <List <ArticleResponse> >()); }