Exemplo n.º 1
0
        public void Should_Be_Able_To_Resolve_BusClient_With_Advanced_Context()
        {
            /* Setup */
            var kernel = new StandardKernel();
            kernel.RegisterRawRabbit<AdvancedMessageContext>("guest:guest@localhost:5672/");

            /* Test */
            var client = kernel.Get<IBusClient<AdvancedMessageContext>>();
            client.Dispose();

            /* Assert */
            Assert.True(true, "Could resolve");
        }
Exemplo n.º 2
0
        public void Should_Be_Able_To_Resolve_IBusClient()
        {
            /* Setup */
            var kernel = new StandardKernel();
            kernel.RegisterRawRabbit("guest:guest@localhost:5672/");

            /* Test */
            var client = kernel.Get<IBusClient>();
            client.Dispose();

            /* Assert */
            Assert.True(true, "Could resolve");
        }
Exemplo n.º 3
0
		public async Task Should_Be_Able_To_Resolve_BusClient_With_Advanced_Context()
		{
			/* Setup */
			LogManager.CurrentFactory = new VoidLoggerFactory();
			var kernel = new StandardKernel();
			kernel.RegisterRawRabbit<AdvancedMessageContext>("guest:guest@localhost:5672/");

			/* Test */
			var client = kernel.Get<IBusClient<AdvancedMessageContext>>();
			await client.ShutdownAsync(TimeSpan.Zero);

			/* Assert */
			Assert.True(true, "Could resolve");
		}