Esempio n. 1
0
        public void SendMail()
        {
            try
            {
                QuestionsFacade facade = new QuestionsFacade();

                //bool returnValue = facade.ShareByEmail("*****@*****.**", null);
                bool returnValue = facade.ShareByEmail("*****@*****.**", "https://ajuda.sapo.pt/");

                Assert.AreEqual(true, returnValue);
            }
            catch (Exception ex)
            {
                Assert.AreEqual(true, false, ex.Message);
            }
        }
        // POST api/share?destination_email={destination_email}&content_url={content_url}
        /// <summary>
        /// Share the content of a URL in email
        /// </summary>
        public void Post([FromBody] string destination_email, [FromBody] string content_url)
        {
            QuestionsFacade facade = new QuestionsFacade();

            facade.ShareByEmail(destination_email, content_url);
        }