From 508dd001f9109c8ec0aab90d952870291e4a2c1f Mon Sep 17 00:00:00 2001 From: andreasohlund Date: Wed, 5 Jun 2013 12:18:07 +0200 Subject: [PATCH] Adusted the test examples to work with the added saga test methods --- .../OrderService/OrderService.Tests/OrderSagaTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Samples/Manufacturing/OrderService/OrderService.Tests/OrderSagaTests.cs b/Samples/Manufacturing/OrderService/OrderService.Tests/OrderSagaTests.cs index af5b5a4af93..46d1942970a 100644 --- a/Samples/Manufacturing/OrderService/OrderService.Tests/OrderSagaTests.cs +++ b/Samples/Manufacturing/OrderService/OrderService.Tests/OrderSagaTests.cs @@ -47,7 +47,7 @@ public void OrderSagaTest() Test.Saga(sagaId).WhenReceivesMessageFrom(partnerAddress) .ExpectReplyToOrginator(m => (Check(m, OrderStatusEnum.Recieved))) .ExpectPublish(m => Check(m, OrderStatusEnum.Recieved)) - .ExpectSend(Check) + .ExpectSend(m=>Check(m)) .ExpectTimeoutToBeSetAt((state, at) => at == order.ProvideBy - TimeSpan.FromSeconds(2) && state == "state") .When(os => os.Handle(order)) @@ -65,7 +65,7 @@ public void TimeoutTest() Test.Saga(sagaId).WhenReceivesMessageFrom(partnerAddress) .ExpectReplyToOrginator(m => (Check(m, OrderStatusEnum.Recieved))) .ExpectPublish(m => Check(m, OrderStatusEnum.Recieved)) - .ExpectSend(Check) + .ExpectSend(m => Check(m)) .ExpectTimeoutToBeSetAt((state, at) => { st = state; return true; }) .When(os => os.Handle(CreateRequest()))