private SendAfterEndpointEventConfiguration CallsInternal(VoidDelegate voidDelegate) { var sequence = new TriggeredMessageSequence(); var trigger = new InvocationTriggeringSequenceOfEvents(_invocationMatcher, sequence); _wcfProxy.AddInvocation(trigger, voidDelegate); return(new SendAfterEndpointEventConfiguration(sequence, _service)); }
private SendAfterEndpointEventConfiguration ReturnsInternal(IInvocationReturnValueProducer returnValueProducer) { var sequence = new TriggeredMessageSequence(); var trigger = new InvocationTriggeringSequenceOfEvents(_invocationMatcher, sequence); _wcfProxy.AddInvocation(trigger, returnValueProducer); return(new SendAfterEndpointEventConfiguration(sequence, _service)); }