public void SetUp() { var connectionFactory = TestUtilities.GetIntegrationConnectionFactory(); var logger = TestUtilities.GetMockLogger(); var databaseDeployer = new DatabaseDeployer(new DatabaseMigratorFactory(connectionFactory), new ExceptionMigrationResultHandler(logger.Object)); var serverRepository = new ServerRepository(connectionFactory); var refreshServerService = new RefreshServerService(logger.Object, new ResourceServerRepository(connectionFactory)); var administrationInstallationRepository = new AdministrationInstallationRepository(connectionFactory); this.administrationInstallationService = new AdministrationInstallationService(databaseDeployer, serverRepository, refreshServerService, administrationInstallationRepository); }
} // Only used for 'AdminScriptsInstalled' #endregion public AdministrationInstall() { //register the prerender event this.PreRender += Page_PreRender; var logger = new TextLogger(); _pageModel = new AdministrationInstallationModel(); var connectionFactory = new HelperConnectionFactory(ConnectionHelper.Helper()); this.sqlServerRepository = new SqlServerRepository(connectionFactory); _serverRepository = new ServerRepository(connectionFactory); var databaseDeployer = new DatabaseDeployer( new DatabaseMigratorFactory(connectionFactory), new ExceptionMigrationResultHandler(logger)); var administrationInstallationRepository = new AdministrationInstallationRepository(connectionFactory); var refreshServerService = new RefreshServerService(logger, new ResourceServerRepository(connectionFactory)); _service = new AdministrationInstallationService(databaseDeployer, _serverRepository, refreshServerService, administrationInstallationRepository); _authService = new AuthenticationServiceFactory().GetService(); }
public void SetUp() { var connectionFactory = TestUtilities.GetIntegrationConnectionFactory(); this.administrationInstallationRepository = new AdministrationInstallationRepository(connectionFactory); }