Ejemplo 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();
        }
Ejemplo 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.ExecuteAsync();
        }
Ejemplo n.º 3
0
        public async Task Teardown()
        {
            await _test.DisposeAsync();

            _test = null;
        }
Ejemplo n.º 4
0
 public void Teardown()
 {
     _test.Dispose();
     _test = null;
 }