示例#1
0
        public PizzaTest()
        {
            crust    = new pi.Crust();
            size     = new pi.Size();
            toppings = new pi.Toppings();

            sut = new pi.Pizza(crust, size);
            sut.AddTopping(toppings);
            sut.AddTopping(toppings);
        }
        public static List <lo.ToppingInventory> GetToppingInventory(pi.Toppings topping, int stock)
        {
            var du = new List <lo.ToppingInventory>();

            foreach (var toppingInventory in _db.ToppingInventory.ToList())
            {
                du.Add(new lo.ToppingInventory(topping.ToppingId, stock));
            }

            return(du);
        }
示例#3
0
        public OrderTest()
        {
            address     = new Address("1123 Fletcher St", "Tampa", "Florida");
            userAddress = new Address("51 Viking Oak", "Tampa", "Florida");

            location = new lo.Location(address);
            user     = new us.User("admin", "password", userAddress);
            sut      = new ord.Order(user.Username, location.OrderNumber, location.Address);

            crust   = new pi.Crust();
            size    = new pi.Size();
            topping = new pi.Toppings();
        }