Exemplo n.º 1
0
        public void A_consumer_is_being_tested()
        {
            _test = TestFactory.ForConsumer <Testsumer>()
                    .New(x =>
            {
                x.UseConsumerFactory(() => new Testsumer());

                x.Send(new A());
            });

            _test.Execute();
        }
Exemplo n.º 2
0
        public void A_consumer_is_being_tested()
        {
            _test = TestFactory.ForConsumer <Testsumer>()
                    .New(x =>
            {
                x.UseConsumerFactory(() => new Testsumer());

                x.Send(new A(), (scenario, context) => context.ResponseAddress = scenario.Bus.Address);
            });

            _test.Execute();
        }