Bottles.Services.Tests.Remote.BigRemoteServicesIntegrationTester.coordinate_message_history_via_remote_service_and_clear_data_does_not_remove_listeners C# (CSharp) Метод

coordinate_message_history_via_remote_service_and_clear_data_does_not_remove_listeners() приватный Метод

        public void coordinate_message_history_via_remote_service_and_clear_data_does_not_remove_listeners()
        {
            using (var runner = RemoteServiceRunner.For<SampleBootstrapper>())
            {
                runner.WaitForServiceToStart<SampleService.SampleService>();
                runner.WaitForServiceToStart<SampleService.RemoteService>();

                MessageHistory.StartListening(runner);
                MessageHistory.ClearHistory();

                var foo = new Foo();

                EventAggregator.SentMessage(foo);

                EventAggregator.Messaging.WaitForMessage<AllMessagesComplete>(() => runner.SendRemotely(foo))
                                   .ShouldNotBeNull();
            }
        }