public void EmailDataAgentTests_SendEmail() { IEnumerable <string> to = new[] { "*****@*****.**" }; IEnumerable <string> cc = new[] { "*****@*****.**" }; IEnumerable <string> bcc = new[] { "*****@*****.**" }; string subject = "Assunto Teste"; string body = "@Teste@"; var sent = emailDataAgent.Send(to, cc, bcc, subject, body); Assert.IsTrue(sent); }
public bool ShareQuestion(ShareRequestModel requestModel) { var sent = emailDataAgent.Send(new[] { requestModel.DestinationEmail }, null, null, "Share", requestModel.ContentUrl); if (sent) { return(sent); } else { throw new BlissException(CommonExceptionResources.InvalidShare); } }