public IHttpActionResult Send(SendEmailRequest request)
        {
            // Send Email
            var email = new EmailMessage(ExchangeServer.Open());

            email.ToRecipients.AddRange(request.Recipients);

            email.Subject = request.Subject;
            email.Body = new MessageBody(request.Body);


            email.Send();
            return Ok(new SendEmailResponse { Recipients = request.Recipients });
        }
        public void SendEmail()
        {
            var controller = new EmailController();

            var request = new SendEmailRequest
            {
                Body = "This is an email from VS Unit Test",
                Subject = "Visual Studio Unit Test",
                Recipients = new List<string>
                {
                    "*****@*****.**"
                }
            };
            var result = controller.Send(request) as OkNegotiatedContentResult<SendEmailResponse>;

            Assert.IsNotNull(result);
            Assert.IsNotNull(result.Content.Recipients);
        }