public static void RegisterTests(HealthCheckService svc) { svc.Add(new NotDebugTest(1)); svc.Add(new DbConnectionTest(2)); svc.Add(new SmtpTest(3)); svc.Setup <Hubs.HealthCheckHub>(); svc.Trace(); }
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>(); }
public static void RegisterTests(HealthCheckService svc) { svc.Add(new NotDebugTest()); svc.Add(new DbConnectionTest()); svc.Setup <SSW.HealthCheck.MVC4.Examples.Hubs.HealthCheckHub>(); }