예제 #1
0
        public void CommentSpammed_Should_SendMail()
        {
            _emailSender.Setup(es => es.NotifyConfirmSpamComment(It.IsAny <string>(), It.IsAny <IComment>(), It.IsAny <IUser>())).Verifiable();

            _sendMail.CommentSpammed(new CommentSpamEventArgs(new Mock <IComment>().Object, new Mock <IUser>().Object, "http://dotnetshoutout.com"));

            _emailSender.Verify();
        }