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

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

Méthodes publiques

Méthode 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 méthode

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

RenderMailMessage() public méthode

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
Résultat Castle.Components.Common.EmailSender.Message

RenderMailMessage() public méthode

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].
Résultat Castle.Components.Common.EmailSender.Message