Exemple #1
0
        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");
        }
Exemple #2
0
        public IHttpActionResult GetAll()
        {
            var brands = brandDal.GetAllBrands();

            return(Ok(brands));
        }