public void Given_waiter_subscribed_for_message_When_publishing_message()
 {
     _transport = new LocalAkkaEventBusTransport(Sys);
     _waiter    = new AkkaMessageLocalWaiter(Sys, _transport, TimeSpan.FromSeconds(2));
     _waiter.Expect <string>(m => m.Like("Msg"));
     results = _waiter.Start(TimeSpan.FromMilliseconds(50));
 }
 public void Given_waiter_subscribed_for_one_of_two_messages()
 {
     _transport = new LocalAkkaEventBusTransport(Sys);
     _waiter    = new AkkaMessageLocalWaiter(Sys, _transport, TimeSpan.FromSeconds(10));
     _waiter.Expect <string>()
     .Or <bool?>();
     _received = _waiter.Start(TimeSpan.FromSeconds(1));
 }
        public void Given_waiter_subscribed_for_message_When_publishing_message()
        {
            var actorSystem = ActorSystem.Create("test");
            var transport   = new LocalAkkaEventBusTransport(actorSystem);

            _waiter = new AkkaMessageLocalWaiter(actorSystem, transport, TimeSpan.FromSeconds(10));
            _waiter.Expect <string>();
            _results = _waiter.Start(TimeSpan.FromSeconds(1));

            _testmsg = "TestMsg";
            transport.Publish(_testmsg);
        }