private void ExpectCallToSend(BusSendWithDestinationDelegate callback) { IMessage[] messages = null; string destination = null; Expect.Call(() => bus.Send(destination, messages)) .IgnoreArguments().Return(null) .Callback(callback); }
private void ExpectCallToSend <T>(BusSendWithDestinationDelegate callback) { Expect.Call(() => bus.Send(Arg <string> .Is.NotNull, Arg <T> .Is.Anything)) .IgnoreArguments().Return(null) .Callback(callback); }