smsohan / MvcMailer

A Mailer for ASP.Net MVC that forms the Email Body using MVC Views (Razor etc.) following Ruby on Rails ActionMailer style
MIT License
585 stars 176 forks source link

Remove optional parameters from MvcMailMessage #78

Closed rbuskov closed 11 years ago

rbuskov commented 11 years ago

Problem: When mocking MvcMailMessage with Moq, it is not possible to set expectations for the MvcMailMessage Send methods because they use optional parameters (which is not supported by Moq).

Solution: Overload methods to eliminate optional parameters without breaking the public interface of the class.