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 GetOnly() { DBHealthCheck tester = new DBHealthCheck(); HealthChecksController controller = new HealthChecksController(); Assert.AreEqual(tester.Name, controller.Get("dbhc").Name); }