/// <summary>
 /// Initializes a new instance of the <see cref="SQLDeployTest" /> class.
 /// </summary>
 /// <param name="isDefault">The is default.</param>
 /// <param name="name">The test title.</param>
 /// <param name="settings">The settings.</param>
 /// <param name="order">The order in which test will appear in the list of tests.</param>
 /// <param name="security">The security.</param>
 public SQLDeployTest(bool isDefault, string name, SqlDeploySettings settings, int order = 0, SqlDeploySecurity security = null)
 {
     this.sqlDeploy = new SqlDeployDbHelper(settings, security);
     this.isDefault = isDefault;
     this.name = name;
     this.Order = order;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SQLDeployTest" /> class.
 /// </summary>
 /// <param name="isDefault">The is default.</param>
 /// <param name="name">The test title.</param>
 /// <param name="settings">The settings.</param>
 /// <param name="order">The order in which test will appear in the list of tests.</param>
 /// <param name="security">The security.</param>
 public SQLDeployTest(bool isDefault, string name, SqlDeploySettings settings, int order = 0, SqlDeploySecurity security = null)
 {
     this.sqlDeploy = new SqlDeployDbHelper(settings, security);
     this.isDefault = isDefault;
     this.name      = name;
     this.Order     = order;
 }
Esempio n. 3
0
        public static void RegisterTests(HealthCheckService svc)
        {
            var debugTest = new NotDebugTest(1)
            {
                TestCategory = new TestCategory {
                    Name = "Test"
                }
            };

            svc.Add(debugTest);
            svc.Add(new DbConnectionTest(2));
            svc.Add(new SmtpTest(3));

            string configPath      = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "App_data", "SqlDeploy.config");
            var    sqlDeployConfig = SqlDeployConfigurationHelper.GetSqlDeployConfiguration(configPath);
            var    settings        = new SqlDeploySettings(sqlDeployConfig);

            svc.Add(new SQLDeployTest(settings, 4));
            svc.Setup <Hubs.HealthCheckHub>();
        }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SqlDeployDbHelper" /> class.
 /// </summary>
 /// <param name="settings">The settings.</param>
 /// <param name="security">The security.</param>
 public SqlDeployDbHelper(SqlDeploySettings settings, SqlDeploySecurity security = null)
 {
     this._security = security;
     this._settings = settings;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SQLDeployTest" /> class.
 /// </summary>
 /// <param name="settings">The settings.</param>
 /// <param name="order">The order in which test will appear in the list of tests.</param>
 /// <param name="security">The security.</param>
 public SQLDeployTest(SqlDeploySettings settings, int order = 0, SqlDeploySecurity security = null)
 {
     this.sqlDeploy = new SqlDeployDbHelper(settings, security);
     this.Order = order;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SqlDeployDbHelper" /> class.
 /// </summary>
 /// <param name="settings">The settings.</param>
 /// <param name="security">The security.</param>
 public SqlDeployDbHelper(SqlDeploySettings settings, SqlDeploySecurity security = null)
 {
     this._security = security;
     this._settings = settings;
 }
Esempio n. 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SQLDeployTest" /> class.
 /// </summary>
 /// <param name="settings">The settings.</param>
 /// <param name="order">The order in which test will appear in the list of tests.</param>
 /// <param name="security">The security.</param>
 public SQLDeployTest(SqlDeploySettings settings, int order = 0, SqlDeploySecurity security = null)
 {
     this.sqlDeploy = new SqlDeployDbHelper(settings, security);
     this.Order     = order;
 }