Esempio n. 1
0
        public void UserSHouldBeAbleToAddAProductForACustomer()
        {
            Product newProduct = new Product()
            {
                Name        = "Computer",
                Quantity    = 2,
                Price       = 1200.00,
                CustomerId  = 13,
                DateCreated = DateTime.Now
            };

            List <Product> emptyProductList = _customerManager.GetCustomerProducts();

            Assert.True(emptyProductList.Count == 0);

            List <Product> allProducts = _customerManager.AddCustomerProduct(newProduct);

            Assert.Contains(newProduct, allProducts);
        }