Ejemplo n.º 1
0
        public void Should_call_the_consumer_anonymous_method()
        {
            var actor = new SomeActorInstance();

            var message = new MyMessage();

            actor.LambdaMessageChannel.Send(message);

            actor.Future.WaitUntilCompleted(1.Seconds()).ShouldBeTrue();
            actor.Future.Value.ShouldEqual(message);
        }
Ejemplo n.º 2
0
        public void Should_call_the_consumer_method()
        {
            var actor = new SomeActorInstance();

            var message = new MyMessage();

            actor.MessageChannel.Send(message);

            actor.Future.IsAvailable(1.Seconds()).ShouldBeTrue();
            actor.Future.Value.ShouldEqual(message);
        }
Ejemplo n.º 3
0
        public void Should_call_the_consumer_anonymous_method()
        {
            var actor = new SomeActorInstance();

            var message = new MyMessage();

            actor.LambdaMessageChannel.Send(message);

            actor.Future.WaitUntilCompleted(1.Seconds()).ShouldBeTrue();
            actor.Future.Value.ShouldEqual(message);
        }