コード例 #1
0
        public void Can_submit_saved_order()
        {
            var order = new Order { Status = Status.Saved };
            order.StateMachine().Fire(Operation.Submit);

            Assert.AreEqual(Status.Submitted, order.Status);
        }
コード例 #2
0
 public void Can_not_submit_submited_order()
 {
     var order = new Order { Status = Status.Submitted };
     order.StateMachine().Fire(Operation.Submit);
 }