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

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