public void GetAllBrandsTest() { IBrandDAL brandDAL = new BrandDAL(connString); List <Brand> brands = brandDAL.GetAllBrands(); Assert.IsNotNull(brands); List <string> names = new List <string>(); foreach (Brand brand in brands) { names.Add(brand.Name); } CollectionAssert.Contains(names, "Nico Shoes"); }
public IHttpActionResult GetAll() { var brands = brandDal.GetAllBrands(); return(Ok(brands)); }