C# Класс Castle.MonoRail.Framework.Test.MockEmailTemplateService

Mocks the IEmailTemplateService calling MockRailsEngineContext.AddMailTemplateRendered to register the calls made to these methods
Наследование: IEmailTemplateService
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

MockEmailTemplateService() публичный Метод

Initializes a new instance of the MockEmailTemplateService class.
public MockEmailTemplateService ( MockRailsEngineContext context ) : System.Collections
context MockRailsEngineContext The context.
Результат System.Collections

RenderMailMessage() публичный Метод

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
Результат Castle.Components.Common.EmailSender.Message

RenderMailMessage() публичный Метод

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].
Результат Castle.Components.Common.EmailSender.Message