C# 클래스 Castle.MonoRail.Framework.Test.MockEmailTemplateService

Mocks the IEmailTemplateService calling MockRailsEngineContext.AddMailTemplateRendered to register the calls made to these methods
상속: IEmailTemplateService
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

공개 메소드들

메소드 설명
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