public void Should_Be_Able_To_Resolve_IBusClient() { /* Setup */ var builder = new ContainerBuilder(); builder.RegisterRawRabbit("guest:guest@localhost:5672/"); var container = builder.Build(); /* Test */ var client = container.Resolve<IBusClient>(); /* Assert */ Assert.True(true, "Could resolve"); }
public void Should_Be_Able_To_Resolve_BusClient_With_Advanced_Context() { /* Setup */ var builder = new ContainerBuilder(); builder.RegisterRawRabbit<AdvancedMessageContext>("guest:guest@localhost:5672/"); var container = builder.Build(); /* Test */ var client = container.Resolve<IBusClient<AdvancedMessageContext>>(); client.Dispose(); /* Assert */ Assert.True(true, "Could resolve"); }
public async Task Should_Be_Able_To_Resolve_BusClient_With_Advanced_Context() { /* Setup */ LogManager.CurrentFactory = new VoidLoggerFactory(); var builder = new ContainerBuilder(); builder.RegisterRawRabbit<AdvancedMessageContext>("guest:guest@localhost:5672/"); var container = builder.Build(); /* Test */ var client = container.Resolve<IBusClient<AdvancedMessageContext>>(); await client.ShutdownAsync(TimeSpan.Zero); /* Assert */ Assert.True(true, "Could resolve"); }