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

Represents a mock implementation of IEmailSender for unit test purposes.
상속: IEmailSender
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

공개 메소드들

메소드 설명
MockSmtpSender ( MockRailsEngineContext context ) : Castle.Components.Common.EmailSender

Initializes a new instance of the MockSmtpSender class.

Send ( Message message ) : void

Sends a message.

Send ( string from, string to, string subject, string messageText ) : void

Sends a message.

메소드 상세

MockSmtpSender() 공개 메소드

Initializes a new instance of the MockSmtpSender class.
public MockSmtpSender ( MockRailsEngineContext context ) : Castle.Components.Common.EmailSender
context MockRailsEngineContext The context.
리턴 Castle.Components.Common.EmailSender

Send() 공개 메소드

Sends a message.
public Send ( Message message ) : void
message Castle.Components.Common.EmailSender.Message Message instance
리턴 void

Send() 공개 메소드

Sends a message.
public Send ( string from, string to, string subject, string messageText ) : void
from string From field
to string To field
subject string e-mail's subject
messageText string message's body
리턴 void