Esempio n. 1
0
        public void Handle_OrderAccepted_TimeoutFor10Seconds()
        {
            Test.Initialize();

            var orderAccepted = new OrderAccepted();
            Test.Saga<OrderPolicy>()
                .When(saga => saga.Handle(orderAccepted))
                .ExpectTimeoutToBeSetIn<OrderAccepted>((state, span)=> span == TimeSpan.FromSeconds(10));
        }
 private static void InitializeMessage(OrderAccepted orderAccepted, int orderValue, long customerId)
 {
     orderAccepted.CustomerId = customerId;
     orderAccepted.OrderValue = orderValue;
 }