Ejemplo n.º 1
0
        // 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);
        }
Ejemplo n.º 2
0
        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);
            }
        }