コード例 #1
0
        public void SendBlindSpotMail_ReturnsVoid()
        {
            var emailRequest = new EmailRequest
            {
                coworkers = new List <string>
                {
                    "*****@*****.**"
                }
            };

            _mockEmailAdapter.Setup(x => x.GetEmailTemplates(It.IsAny <string>())).Returns(
                new EmailTemplate
            {
                body = "", footer = "", headerprefix = "", subject = "", type = "blindspot"
            });

            Assert.DoesNotThrow(() => _emailBusinessLogic.SendBlindSpotMail(emailRequest));
        }
コード例 #2
0
 public void sendBlindSpotMail([FromBody] EmailRequest emailRequest)
 {
     _emailServiceBusinessLogic.SendBlindSpotMail(emailRequest);
 }