MvcMailer: Can't complete NUnit tests on Razor Views which use Url.Action
问题 Here's my problem - I am using MvcMailer to create nicely formatted emails using Razor syntax, and it's a great tool to use for that! The issue I'm running into is this - here's some syntax from my View for one of the emails i send: <p>Click here to return to <a href="@Url.Abs(Url.Action("Details", "Home", new{ Id=ViewBag.IdeaId}))">@ViewBag.IdeaName</a></p> Whenever I try to run my unit tests, I get the following error message: Can we send out email notifications for new comments?: System