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

Represents a mock implementation of IEmailSender for unit test purposes.
Inheritance: IEmailSender
Afficher le fichier Open project: nats/castle-1.0.3-mono

Méthodes publiques

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

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

Send() public méthode

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

Send() public méthode

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
Résultat void