Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        public static List <lo.CrustInventory> GetCrustInventoryByLocation(List <pi.Crust> crusts, int locationId)
        {
            var du = new List <lo.CrustInventory>();

            foreach (var item in _db.CrustInventory.ToList())
            {
                pi.Crust crust = crusts.Where(c => c.CrustId == item.CrustId).FirstOrDefault();
            }

            return(du);
        }
Ejemplo n.º 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();
        }