Exemplo n.º 1
0
        /// <summary>
        /// Check that the object uses the bus to return the appropriate error code.
        /// </summary>
        /// <param name="check"></param>
        /// <returns></returns>
        public void ExpectReturn(ReturnPredicate check)
        {
            Delegate d = new HandleMessageDelegate(
                () => ExpectCallToReturn(check)
                );

            delegates.Add(d);
        }
Exemplo n.º 2
0
 private void ExpectCallToReturn(ReturnPredicate callback)
 {
     Expect.Call(() => bus.Return(-1))
     .IgnoreArguments()
     .Callback(callback);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Check that the saga uses the bus to return the appropriate error code.
 /// </summary>
 /// <param name="check"></param>
 /// <returns></returns>
 public Saga <T> ExpectReturn(ReturnPredicate check)
 {
     helper.ExpectReturn(check);
     return(this);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Check that the saga uses the bus to return the appropriate error code.
 /// </summary>
 /// <param name="check"></param>
 /// <returns></returns>
 public Handler <T> ExpectReturn(ReturnPredicate check)
 {
     helper.ExpectReturn(check);
     return(this);
 }