public void Can_submit_saved_order() { var order = new Order { Status = Status.Saved }; order.StateMachine().Fire(Operation.Submit); Assert.AreEqual(Status.Submitted, order.Status); }
public void Can_not_submit_submited_order() { var order = new Order { Status = Status.Submitted }; order.StateMachine().Fire(Operation.Submit); }