public void SendMessage_ExistingMessage() { _messageSender.Setup(uof => uof.SendToUs(It.IsAny <MessageDto>())); _sut.SendMessage(It.IsAny <MessageDto>()); _messageSender.Verify(uof => uof.SendToUs(It.IsAny <MessageDto>()), Times.AtLeastOnce); }
public void SendEmail(int id, string facultyName, string format) { var model = new MessageDto { From = "*****@*****.**", To = _enrolleeService.Get(id).Email, Body = "you are registered at the faculty " + facultyName + " (" + format + ")\n" }; _enrolleeService.SendMessage(model); }