public void TestAddCategory()
 {
     _repo.AddCategory(new Category()
     {
         Categoryid   = 4,
         Categoryname = "Electronics",
         Briefdetails = "nothing"
     });
 }
 public void TestAddCategory()
 {
     _repo.AddCategory(new Category()
     {
         CategoryId   = 45,
         CategoryName = "Books",
         BriefDetails = "good"
     });
 }
예제 #3
0
 public void TestAddCategory()
 {
     _repo.AddCategory(new Category()
     {
         Cid          = "C365",
         Categoryname = "HomeAppliances",
         Briefdetails = "BestQuality"
     });
     //var result = _repo.GetCategory("C365");
     //Assert.IsNotNull(result);
 }
        public void TestAddCategory()
        {
            _repo.AddCategory(new Category()
            {
                CategoryId   = "C0767",
                CategoryName = "XYZ",
                BriefDetails = "vujh"
            });
            var result = _repo.GetCategory("C0767");

            Assert.IsNotNull(result);
        }
        public void AddCategory()
        {
            _repo.AddCategory(new Category()
            {
                Categoryid   = 2,
                Categoryname = "dolls",
                BriefDetails = "lids dolls"
            });
            var result = _repo.getbyid(2);

            Assert.NotNull(result);
        }
예제 #6
0
        public void TestAddCategory()
        {
            _repo.AddCategory(new Category()
            {
                CategoryId   = "C0010",
                CategoryName = "Homeappliances",
                BriefDetails = ""
            });
            var result = _repo.GetCatById("C0010");

            Assert.NotNull(result);
        }
예제 #7
0
        public void TestAddCategory()
        {
            _repo.AddCategory(new Category()
            {
                Categoryid    = 123,
                Categoryname  = "Grocery",
                Categorybrief = "Grocerystore"
            });
            var result = _repo.GetCategories();

            Assert.NotNull(result);
        }
예제 #8
0
        public void AddCategory()
        {
            _repo.AddCategory(new Category()
            {
                CategoryId   = "c05",
                CategoryName = "Electonics",
                BriefDetails = "Best"
            });
            var result = _repo.GetCatById("c05");

            Assert.IsNotNull(result);
        }
예제 #9
0
        public void TestAddCategory()
        {
            rep.AddCategory(new Category()
            {
                CategoryId      = 3,
                CategoryName    = "sport",
                CategoryDetails = "sport"
            });
            var res = rep.getCategoryId(2);

            Assert.NotNull(res);
        }
        public void TestAdditems()
        {
            _repo.AddCategory(new Category()
            {
                Cid   = 78,
                Cname = "Tedspoons",

                Cdetails = "spoon",
            });
            var result = _repo.getbyid(78);

            Assert.NotNull(result);
        }
        public void TestAddCategory()
        {
            _amrepo.AddCategory(new Category()
            {
                CategoryId   = "c1443",
                CategoryName = "Boat",
                BriefDetails = "U"
            }
                                );


            var result = _amrepo.GetCatById("c1243");

            Assert.IsNotNull(result);
        }
 public static bool AddCategory(Category category)
 {
     return(AdminRepository.AddCategory(category));
 }