private static void InstallMongoDb() { var initializer = new InitializeManager(); initializer.RegisterPrintable(SignaloBotTestParameters.MongoDbConnection , SignaloBotTestParameters.MongoDbConnection.ToDetailsString()); initializer.Builder.RegisterType<ShoutExceptionLogger>().As<ICommonLogger>(); initializer.Builder.RegisterType<MongoDbUserDeliveryTypeSettingsQueries>().As<IUserDeliveryTypeSettingsQueries<ObjectId>>(); initializer.Builder.RegisterType<MongoDbUserCategorySettingsQueries>().As<IUserCategorySettingsQueries<ObjectId>>(); initializer.Builder.RegisterType<MongoDbUserTopicSettingsQueries>().As<IUserTopicSettingsQueries<ObjectId>>(); initializer.RegisterModules(new List<Type>() { typeof(DropMongoDbModule), typeof(CreateMongoDbIndexModule), typeof(TestDataModule<ObjectId>), //typeof(MongoDbLoadTestDataModule) }); initializer.Initialize(); }
private static void InstallSql() { var initializer = new InitializeManager(); initializer.RegisterPrintable(SignaloBotTestParameters.SqlConnetion , SignaloBotTestParameters.SqlConnetion.ToDetailsString()); initializer.Builder.RegisterType<ShoutExceptionLogger>().As<ICommonLogger>(); initializer.Builder.RegisterType<SqlUserDeliveryTypeSettingsQueries>().As<IUserDeliveryTypeSettingsQueries<Guid>>(); initializer.Builder.RegisterType<SqlUserCategorySettingsQueries>().As<IUserCategorySettingsQueries<Guid>>(); initializer.Builder.RegisterType<SqlUserTopicSettingsQueries>().As<IUserTopicSettingsQueries<Guid>>(); initializer.RegisterModules(new List<Type>() { typeof(DropSqlDbModule), typeof(CreateSqlScriptsModule), typeof(CreateNotificationSqlScriptsModule), typeof(TestDataModule<Guid>), }); initializer.Initialize(); }
private static void RunInitializeModules() { var initializer = new InitializeManager(); RegisterServices(initializer); RegisterImageParameters(initializer); RegisterParameters(initializer); initializer.RegisterModules(new List<Type>() { typeof(DropMongoDbModule), typeof(CreateMongoDbIndexModule<UserAccount>), //typeof(ESInstallModule), typeof(CategoriesModule), typeof(AdminUserModule), typeof(DemoContentModule), //typeof(ESInsertDataModule), typeof(ManualsModule), //typeof(AvatarsModule), }); initializer.Initialize(); }