public void GetAllCats() { CategoryResponse response = repo.GetAll(); Category actual = response.Categories.Where(c => c.CategoryId == 1).First(); Assert.AreEqual(true, response.Success); Assert.AreEqual("Tech", actual.CategoryName); }
public CategoryResponse GetAll() { return(repo.GetAll()); }