Example #1
0
    public void DishId_ShouldReturn_10()
    {
        ColdPrep cold = new ColdPrep();

        cold.PrepDish(10);
        Assert.Equal(10, 10);
    }
Example #2
0
        public Order PlaceOrder(Patron patron, int coldAppID, int hotEntreeID, int drinkID)
        {
            Console.WriteLine("{0} places order for cold app #" + coldAppID.ToString()
                              + ", hot entree #" + hotEntreeID.ToString()
                              + ", and drink #" + drinkID.ToString() + ".");

            Order order = new Order();

            order.Appetizer = _coldPrep.PrepDish(coldAppID);
            order.Entree    = _hotPrep.PrepDish(hotEntreeID);
            order.Drink     = _bar.PrepDish(drinkID);

            return(order);
        }