public void ListCategories_ShouldReturnListOfCategoriesWithoutPosts() { var response = butterClient.ListCategories(); Assert.IsNotNull(response); Assert.IsNull(response.FirstOrDefault().RecentPosts); }
public CategoriesListViewModel ListAllCategories() { var response = _client.ListCategories().ToList(); var model = new CategoriesListViewModel { Categories = response, Count = response.Count }; return(model); }