public void Addtocart()
 {
     _repo.Addtocart(new Cart()
     {
         CartId        = "Emcr60",
         Iid           = "I078",
         Categoryid    = 1,
         Subcategoryid = 1,
         Itemname      = "flower",
         Price         = "45",
         Description   = "flower Keychain",
         Remarks       = "super",
         Sid           = "1",
         Image         = "keychain.jpg",
         Bid           = "1"
     });
 }
        public void TestAddtoCart()
        {
            _buyrepo.Addtocart(new Cart()
            {
                CartId        = "CT2",
                CategoryId    = "6",
                SubcategoryId = "1",
                SellerId      = "1",
                ItemId        = "I660",
                Itemname      = "samsung",
                Price         = "11",
                Description   = "good",

                Image = "samsung a30.jpg"
            });

            var result = _buyrepo.ViewCart("1");

            Assert.IsNotNull(result);
        }
        public void TestAddCart()
        {
            _repo.Addtocart(new Cart()
            {
                Cartid      = 86,
                Bid         = 1,
                Cid         = 1,
                Description = "notbad",
                Iid         = 55,
                Imagepath   = "46.jpg",
                ItemName    = "teddypillows",
                Price       = 785,
                Sid         = 1,
                StockNo     = 1,
                Scid        = 1,
            });
            var x = _repo.GetCart(2);

            Assert.IsNotNull(x);
        }