Example #1
0
        public void AddToCartTest(string pID, int amountOrdered, string expectedValue)
        {
            CateringItem testItem = new CateringItem("T1", "Test Food", 5.00M, "T");

            testItem.InventoryAmount = 50;
            CustomerAccount.Balance  = 100.00M;
            Catering.Inventory       = new Dictionary <String, CateringItem>()
            {
                { "T1", testItem }
            };

            string actualValue = Catering.AddToCart(pID, amountOrdered);

            Assert.AreEqual(expectedValue, actualValue);
        }