Ejemplo n.º 1
0
        public void TestFor_StockAdding()
        {
            //Arrange
            Products Product = new Products()
            {
                Id            = 1,
                ProductName   = "Mobile",
                SubCategoryId = "2",
                Price         = 400,
                BuyerId       = 2,
                CategoryId    = "2"
            };
            List <Products> productList = new List <Products>();

            productList.Add(Product);


            Seller seller = new Seller()
            {
                SellerId     = 10,
                SellerName   = "Mary",
                Email        = "*****@*****.**",
                Password     = "******",
                PostelAdress = "Delhi",
                GSTIN        = "ABVC123XY763BG5",
                BankDetails  = "SBI"
            };
            var NumberOfStock = 1;

            //Action
            var IsAddedStock = _Sellerservice.AddStock(productList, seller, NumberOfStock);

            //Assert
            Assert.True(IsAddedStock);
        }