C# Class Castle.ActiveRecord.Testing.InMemoryConnectionProvider

ConnectionProvider for Sqlite in memory tests, that suppresses closing the connection to keep the data until the test is finished.
Inheritance: NHibernate.Connection.DriverConnectionProvider
Show file Open project: shosca/ActiveRecord Class Usage Examples

Public Properties

Property Type Description
Connection IDbConnection

Public Methods

Method Description
CloseConnection ( IDbConnection conn ) : void

No-Op.

GetConnection ( ) : IDbConnection

Called by the framework.

Restart ( ) : void

Closes the connection after the tests.

Method Details

CloseConnection() public method

No-Op.
public CloseConnection ( IDbConnection conn ) : void
conn IDbConnection The connection to close.
return void

GetConnection() public method

Called by the framework.
public GetConnection ( ) : IDbConnection
return IDbConnection

Restart() public static method

Closes the connection after the tests.
public static Restart ( ) : void
return void

Property Details

Connection public static property

The connection to the database
public static IDbConnection Connection
return IDbConnection