public void ExecuteAll() { Dictionary<string, string> tester = new Dictionary<string, string>(); HealthChecksController controller = new HealthChecksController(); tester = controller.GetExecute(); Assert.AreEqual("Healthy", tester["axhc"]); Assert.AreEqual("Healthy", tester["dbhc"]); Assert.AreEqual("Unhealthy", tester["wshc"]); }
public void GetAll() { AnetHealthCheckRegistry tester = new AnetHealthCheckRegistry(); HealthChecksController controller = new HealthChecksController(); tester = controller.Get(); Assert.AreEqual("AuthXHealthCheck", tester.RegisteredHealthChecks["axhc"].Name); Assert.AreEqual("DBHealthCheck", tester.RegisteredHealthChecks["dbhc"].Name); Assert.AreEqual("WSHealthCheck", tester.RegisteredHealthChecks["wshc"].Name); }
public void ExecuteOnly() { DBHealthCheck tester = new DBHealthCheck(); HealthChecksController controller = new HealthChecksController(); Assert.AreEqual("Healthy", controller.GetExecute("dbhc")); }
public void GetOnly() { DBHealthCheck tester = new DBHealthCheck(); HealthChecksController controller = new HealthChecksController(); Assert.AreEqual(tester.Name, controller.Get("dbhc").Name); }