C# Class Castle.MonoRail.Framework.Test.MockEmailTemplateService

Mocks the IEmailTemplateService calling MockRailsEngineContext.AddMailTemplateRendered to register the calls made to these methods
Inheritance: IEmailTemplateService
Datei anzeigen Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
MockEmailTemplateService ( MockRailsEngineContext context ) : System.Collections

Initializes a new instance of the MockEmailTemplateService class.

RenderMailMessage ( string templateName, IDictionary parameters, bool doNotApplyLayout ) : Message

Creates an instance of Message using the specified template for the body

RenderMailMessage ( string templateName, IRailsEngineContext engineContext, Controller controller, bool doNotApplyLayout ) : Message

Renders the mail message.

Method Details

MockEmailTemplateService() public method

Initializes a new instance of the MockEmailTemplateService class.
public MockEmailTemplateService ( MockRailsEngineContext context ) : System.Collections
context MockRailsEngineContext The context.
return System.Collections

RenderMailMessage() public method

Creates an instance of Message using the specified template for the body
public RenderMailMessage ( string templateName, IDictionary parameters, bool doNotApplyLayout ) : Message
templateName string Name of the template to load. /// Will look in Views/mail for that template file.
parameters IDictionary Dictionary with parameters /// that you can use on the email template
doNotApplyLayout bool If true, it will skip the layout
return Castle.Components.Common.EmailSender.Message

RenderMailMessage() public method

Renders the mail message.
public RenderMailMessage ( string templateName, IRailsEngineContext engineContext, Controller controller, bool doNotApplyLayout ) : Message
templateName string Name of the template.
engineContext IRailsEngineContext The engine context.
controller Controller The controller.
doNotApplyLayout bool if set to true [do not apply layout].
return Castle.Components.Common.EmailSender.Message