protected override async Task When()
        {
            var request = new SomeConcreteRequestType();
            _response = await Bus.Request(request);

            await TimeSpan.FromSeconds(5).WaitUntil(() => MethodCallCounter.AllReceivedMessages.Any());
        }
 protected override async Task When()
 {
     var request = new SomeConcreteRequestType();
     _response = (await Bus.MulticastRequest(request, TimeSpan.FromSeconds(TimeoutSeconds)))
         .Take(1)
         .ToArray();
 }
        protected override async Task When()
        {
            var request = new SomeConcreteRequestType();

            _response = (await Bus.MulticastRequest(request, TimeSpan.FromSeconds(2))).ToArray();

            await TimeSpan.FromSeconds(5).WaitUntil(() => MethodCallCounter.AllReceivedMessages.Any());
        }
Beispiel #4
0
        protected override async Task When()
        {
            var request = new SomeConcreteRequestType();

            _response = (await Bus.MulticastRequest(request, TimeSpan.FromSeconds(TimeoutSeconds)))
                        .Take(1)
                        .ToArray();
        }
Beispiel #5
0
        protected override async Task When()
        {
            var request = new SomeConcreteRequestType();

            _response = await Bus.Request(request, TimeSpan.FromSeconds(TimeoutSeconds));
        }
 protected override async Task When()
 {
     var request = new SomeConcreteRequestType();
     _response = await Bus.Request(request, TimeSpan.FromSeconds(TimeoutSeconds));
 }