Exemple #1
0
        public static ExpectedMessage Message(Type messageType, string idPropertyName, Guid messageId)
        {
            var expectedMessage = new ExpectedMessage(messageType, 1, idPropertyName, messageId);

            ExpectedMessage.VerifyIdPropertyName(expectedMessage.MessageType, expectedMessage.IdPropertyName);
            return(expectedMessage);
        }
Exemple #2
0
        public static ExpectedFault <T> Fault <T>(Expression <Func <T, Guid> > idPropertyNameExpression, Guid messageId, params Type [] source)
        {
            var expectedFault = new ExpectedFault <T>(1, MemberNameExtractor.GetName(idPropertyNameExpression), messageId, source);

            ExpectedMessage.VerifyIdPropertyName(expectedFault.ProcessMessageType, expectedFault.IdPropertyName);
            return(expectedFault);
        }
Exemple #3
0
 public static async Task <T> Execute <T>(this ICommandExecutor node, ICommand command, ExpectedMessage <T> expectedMessage)
 {
     return(await Execute <T>(node, command, new ExpectedMessage[] { expectedMessage }));
 }