C# Class Castle.MonoRail.TestSupport.WebServer

Manages a Cassini.Server instance. This is useful to start/stop a lightweight webserver to run acceptance tests.
Afficher le fichier Open project: nats/castle-1.0.3-mono

Méthodes publiques

Méthode Description
StartWebServer ( ) : void

Starts the web server. The web project folder is going to be extracted from the appSettings.webapp entry (from the configuration file)

If the path is relative, it is going to be converted to an absolute path.

StartWebServer ( string webApplicationAbsolutePath ) : void

Starts the web server using the specified web project path. Note that the path must be absolute.

StopWebServer ( ) : void

Stops the web server.

Method Details

StartWebServer() public static méthode

Starts the web server. The web project folder is going to be extracted from the appSettings.webapp entry (from the configuration file)

If the path is relative, it is going to be converted to an absolute path.

public static StartWebServer ( ) : void
Résultat void

StartWebServer() public static méthode

Starts the web server using the specified web project path. Note that the path must be absolute.
public static StartWebServer ( string webApplicationAbsolutePath ) : void
webApplicationAbsolutePath string The web application absolute path.
Résultat void

StopWebServer() public static méthode

Stops the web server.
public static StopWebServer ( ) : void
Résultat void