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

Represents a mock implementation of IEmailSender for unit test purposes.
Inheritance: IEmailSender
显示文件 Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
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.

Method Details

MockSmtpSender() public method

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

Send() public method

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

Send() public method

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
return void