public void Customize(BusConfiguration configuration)
        {
            XmlConfigurator.Configure();
            configuration.UseContainer<NinjectBuilder>(k => k.ExistingKernel(CreateKernel()));
            configuration.RegisterComponents(components => components.ConfigureComponent<UnitOfWork>(DependencyLifecycle.InstancePerUnitOfWork));

            configuration.RegisterComponents(x => x.ConfigureComponent<IRepository>(
                builder =>
                {
                    return new Repository(() =>
                    {
                        var nh = builder.Build<NHibernateStorageContext>();
                        var e = new ProductShippingContext(nh.Connection);
                        return e;
                    });
                },
                DependencyLifecycle.InstancePerUnitOfWork));
            configuration.UsePersistence<NHibernatePersistence>();
            configuration.UseTransport<MsmqTransport>();
            configuration.UseDataBus<FileShareDataBus>().BasePath("NServiceBus.DataBus.BasePath");
            configuration.RijndaelEncryptionService();
            configuration.Transactions();
            configuration.EnableOutbox();
        }
 void SetupDevelopmentDatabase()
 {
     Database.SetInitializer(new DropCreateDatabaseIfModelChanges<ProductShippingContext>());
     using (var context = new ProductShippingContext("NServiceBus/Persistence"))context.Database.Initialize(true);
 }