Beispiel #1
0
        public void TestMethod6()
        {
            //Arrange
            var logicCart = new FakeDatabaseCart();
            //Act;
            var result = logicCart.GetSubTotal(15, 5);

            //Assert
            Assert.AreEqual(result.Products[0].SubTotal, 75);
        }
Beispiel #2
0
        public void TestMethod3()
        {
            //Arrange
            var logicCart = new FakeDatabaseCart();
            //Act;
            var result = logicCart.GetProductsFromCart(2);

            //Assert
            Assert.AreEqual(result.User.UserID, 2);
            Assert.AreEqual(result.Products[0].Productname, "Binja");
        }