private static void OrderWithState() { Order order = new Order(); order.AddBook("foo"); order.AddBook("bar"); order.SubmitOrder(); // uncomment to show problem //order.Ship(); order.DeliveryDetailsSupplied("123 Johnson Street, KFalls Or, 97601"); order.ItemPicked("foo"); order.ItemPicked("bar"); order.Ship(); }
public ShippedState(Order order) : base(order) { }
public SelectingState(Order order) : base(order) { }
public ReadyForShippingState(Order order) : base(order) { }
public OrderPickingState(Order order) : base(order) { }
public SupplyingDeliveryDetailsState(Order order) : base(order) { }
public AbstractStates(Order order) { this.order = order; }