Skip to content

Commit

Permalink
Adusted the test examples to work with the added saga test methods
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasohlund committed Jun 5, 2013
1 parent d3151e5 commit 508dd00
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void OrderSagaTest()
Test.Saga<OrderSaga>(sagaId).WhenReceivesMessageFrom(partnerAddress)
.ExpectReplyToOrginator<IOrderStatusChangedMessage>(m => (Check(m, OrderStatusEnum.Recieved)))
.ExpectPublish<IOrderStatusChangedMessage>(m => Check(m, OrderStatusEnum.Recieved))
.ExpectSend<RequestOrderAuthorizationMessage>(Check)
.ExpectSend<RequestOrderAuthorizationMessage>(m=>Check(m))
.ExpectTimeoutToBeSetAt<string>((state, at) => at == order.ProvideBy - TimeSpan.FromSeconds(2) && state == "state")
.When(os => os.Handle(order))

Expand All @@ -65,7 +65,7 @@ public void TimeoutTest()
Test.Saga<OrderSaga>(sagaId).WhenReceivesMessageFrom(partnerAddress)
.ExpectReplyToOrginator<IOrderStatusChangedMessage>(m => (Check(m, OrderStatusEnum.Recieved)))
.ExpectPublish<IOrderStatusChangedMessage>(m => Check(m, OrderStatusEnum.Recieved))
.ExpectSend<RequestOrderAuthorizationMessage>(Check)
.ExpectSend<RequestOrderAuthorizationMessage>(m => Check(m))
.ExpectTimeoutToBeSetAt<string>((state, at) => { st = state; return true; })
.When(os => os.Handle(CreateRequest()))

Expand Down

0 comments on commit 508dd00

Please sign in to comment.