public void restoreMemento(OrderMemento memento) { Name = memento.Name; Payment = memento.Payment; Cost = memento.Cost; Console.WriteLine("Restoring"); }
public void RestoreOrder(OrderMemento orderMemento) { _dateOfCreate = orderMemento.DateOfCreate; _basket = orderMemento.Basket; }
public void PushOrder(OrderMemento orderMemento) { Stories.Add(orderMemento); }