NSoft.NFramework.Data.NHibernateEx.ForTesting.UnitOfWorkTestContextDbStrategy.CreateSession C# (CSharp) Method

CreateSession() public method

Create new session in testing context
public CreateSession ( ) : ISession
return ISession
        public virtual ISession CreateSession() {
            var interceptor = NHIoC.ResolveInterceptor();

            return interceptor != null
                       ? TestContext.SessionFactory.OpenSession(interceptor)
                       : TestContext.SessionFactory.OpenSession();
        }