public void Setup() { _test = TestFactory.ForHandler<A>() .New(x => { x.Send(new A()); x.Send(new B()); }); _test.ExecuteAsync(); }
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(); }
public void Teardown() { _test.Dispose(); _test = null; }
public void Setup() { _test = TestFactory.ForHandler<A>() .New(x => { x.Publish(new A()); x.Publish(new B()); }); _test.Execute(); }
public async Task Teardown() { await _test.DisposeAsync(); _test = null; }