C# Class Rebel.Tests.Extensions.NHibernateInMemoryRepository

A helper class to create an in memory sql lite persistence layer for use in unit tests
Inheritance: DisposableObject
Show file Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Public Methods

Method Description
ClearTest ( ) : void
NHibernateInMemoryRepository ( IFrameworkContext fakeFrameworkContext, ISessionFactory sessionFactory = null, ISession sessionForTest = null ) : System

Protected Methods

Method Description
DisposeResources ( ) : void

Method Details

ClearTest() public method

public ClearTest ( ) : void
return void

DisposeResources() protected method

protected DisposeResources ( ) : void
return void

NHibernateInMemoryRepository() public method

public NHibernateInMemoryRepository ( IFrameworkContext fakeFrameworkContext, ISessionFactory sessionFactory = null, ISession sessionForTest = null ) : System
fakeFrameworkContext IFrameworkContext
sessionFactory ISessionFactory
sessionForTest ISession
return System