// GET api/health /// <summary> /// Check the server health, testing if it is possible to query an item in the database /// </summary> public bool Get() { bool returnValue = false; QuestionsFacade facade = new QuestionsFacade(); returnValue = facade.Health(); return(returnValue); }
public void ServerHealth() { try { QuestionsFacade facade = new QuestionsFacade(); bool health = facade.Health(); Assert.AreEqual(true, true, "Sucesso!!"); } catch (Exception ex) { Assert.AreEqual(true, false, ex.Message); } }