public User(string username, string password) { Username = username; Password = password; Orders = new List <ord.Order>(); LastLocationOrdered = null; LastTimeOrdered = new DateTime(); CurrentOrder = null; }
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(); }
public static List <pi.Pizza> GetPizzaByOrder(ord.Order order) { var dataOrder = _db.Order.Where(o => o.OrderId == order.OrderId).FirstOrDefault(); if (dataOrder == null) { return(null); } return(GetPizzas(new List <Order>() { dataOrder })); }
public void CancelOrder() { CurrentOrder = null; }
//public void AddOrder() //{ // if (CurrentOrder != null) // { // Orders.Add(CurrentOrder); // LastLocationOrdered = CurrentOrder.LocationAddress; // LastTimeOrdered = CurrentOrder.PurchaseTime; // CurrentOrder = null; // } //} public void CreateOrder() { CurrentOrder = new ord.Order(Username); }