Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        public void Will_be_able_to_create_the_database_schema_in_sqlite_when_no_file_exists()
        {
            File.Delete(DomainDatabaseBootStrapper.dataBaseFile);

            DomainDatabaseBootStrapper.BootStrap();
        }