Exemplo n.º 1
0
		public void Setup()
		{
			_test = TestFactory.ForHandler<A>()
				.New(x =>
					{
						x.Send(new A());
						x.Send(new B());
					});

			_test.ExecuteAsync();
		}
Exemplo n.º 2
0
		public void Setup()
		{
			_test = TestFactory.ForHandler<A>()
				.New(x =>
					{
//						x.UseRabbitMqBusScenario();

						x.Send(new A());
						x.Send(new B());
					});
			_test.ExecuteAsync();
		}
		public void A_handler_responds_to_a_message_using_context()
		{
			_test = TestFactory.ForHandler<A>()
				.New(x =>
					{
						x.Handler(async (context) => context.Respond(new B()));

						//x.Send(new A(), (scenario, context) => context.SendResponseTo(scenario.Bus));
					});

			_test.ExecuteAsync();
		}
Exemplo n.º 4
0
		public void Teardown()
		{
			_test.Dispose();
			_test = null;
		}
Exemplo n.º 5
0
		public void Setup()
		{
			_test = TestFactory.ForHandler<A>()
				.New(x =>
					{
						x.Publish(new A());
						x.Publish(new B());
					});

			_test.Execute();
		}
Exemplo n.º 6
0
		public async Task Teardown()
		{
			await _test.DisposeAsync();
			_test = null;
		}
Exemplo n.º 7
0
 public void Teardown()
 {
     _test.Dispose();
     _test = null;
 }