Exemple #1
0
        public void BuildHost_assembles_host(NybusHostBuilder sut, IBusEngine engine, IServiceProvider serviceProvider, NybusConfiguration configuration)
        {
            var host = sut.BuildHost(engine, serviceProvider, configuration);

            Assert.That(host, Is.Not.Null);
        }
Exemple #2
0
        public void BuildHost_assembles_host_with_subscribed_event(Type handlerType, NybusHostBuilder sut, IBusEngine engine, IServiceProvider serviceProvider, NybusConfiguration configuration)
        {
            sut.SubscribeToEvent <FirstTestEvent>(handlerType);

            var host = sut.BuildHost(engine, serviceProvider, configuration);

            Assert.That(host, Is.Not.Null);
        }
Exemple #3
0
 public void Logger_is_required(IBusEngine engine, NybusConfiguration configuration, IServiceProvider serviceProvider)
 {
     Assert.Throws <ArgumentNullException>(() => new NybusHost(engine, configuration, serviceProvider, null));
 }