public void BootStrapTheApplication()
        {
            DomainDatabaseBootStrapper.BootStrap();
            ReportingDatabaseBootStrapper.BootStrap();

            ObjectFactory.Initialize(x =>
            {
                x.AddRegistry <ApplicationRegistry>();
                x.AddRegistry <DomainRegistry>();
                x.AddRegistry <ReportingRegistry>();
                x.AddRegistry <ServicesRegister>();
            });
            ObjectFactory.AssertConfigurationIsValid();

            RegisterCommandHandlersInMessageRouter.BootStrap();
            RegisterEventHandlersInMessageRouter.BootStrap();
        }
Exemple #2
0
        public void Will_be_able_to_create_the_database_schema_in_sqlite_when_no_file_exists()
        {
            File.Delete(ReportingDatabaseBootStrapper.dataBaseFile);

            ReportingDatabaseBootStrapper.BootStrap();
        }