C# Class Castle.MonoRail.TestSupport.WebServer

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

Public Methods

Method 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 method

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

StartWebServer() public static method

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

StopWebServer() public static method

Stops the web server.
public static StopWebServer ( ) : void
return void