public async Task NothingShouldGoBang()
        {
            var typeProvider = new AssemblyScanningTypeProvider(GetType().Assembly);

            using (var container = new WindsorContainer())
            {
                container.RegisterCumulus(typeProvider);
            }
        }
        public void NothingShouldGoBang()
        {
            using (var container = new WindsorContainer())
            {
                var typeProvider = new AssemblyScanningTypeProvider();

                container.Register(Component.For<ILogger>()
                                            .ImplementedBy<ConsoleLogger>()
                                            .LifestyleSingleton());

                container.RegisterCumulus(typeProvider);

                container.Register(Component.For<ILargeMessageBodyStore>()
                                            .UsingFactoryMethod(c => new BlobStorageBuilder()
                                                                    .Configure()
                                                                    .UsingStorageAccountConnectionString(CommonResources.BlobStorageConnectionString)
                                                                    .WithLogger(c.Resolve<ILogger>())
                                                                    .Build())
                                            .LifestyleSingleton());

                container.Register(Component.For<IBus>()
                                            .UsingFactoryMethod(c => new BusBuilder().Configure()
                                                                                     .WithNames("IntegrationTestHarness", Environment.MachineName)
                                                                                     .WithConnectionString(
                                                                                         @"Endpoint=sb://shouldnotexist.example.com/;SharedAccessKeyName=IntegrationTestHarness;SharedAccessKey=borkborkbork=")
                                                                                     .WithLargeMessageStorage(
                                                                                         sc => sc.WithLargeMessageBodyStore(c.Resolve<ILargeMessageBodyStore>())
                                                                                                 .WithMaxSmallMessageSize(50*1024)
                                                                                                 .WithMaxLargeMessageSize(1024*1024))
                                                                                     .WithTypesFrom(typeProvider)
                                                                                     .WithDefaultTimeout(TimeSpan.FromSeconds(10))
                                                                                     .WithLogger(c.Resolve<ILogger>())
                                                                                     .Build())
                                            .LifestyleSingleton());

                container.Resolve<IBus>();
            }
        }
 public IDependencyResolver Create(ITypeProvider typeProvider)
 {
     var container = new WindsorContainer();
     container.RegisterCumulus(typeProvider);
     return container.Resolve<IDependencyResolver>();
 }