protected static IRepository GetRepository()
        {
            var openSession          = MSpecAssemblyContext.NhibernateFluent <CallSessionContext>().BuildSessionFactory().OpenSession();
            var nhibernateRepository = new NhibernateRepository(/*Pleasure.MockStrictAsObject<INhibernateSessionFactory>(mock => mock.Setup(r => r.GetCurrent()).Returns(openSession))*/);

            nhibernateRepository.SetProvider(new Lazy <ISession>(() => openSession));
            return(nhibernateRepository);
        }
        protected static IRepository GetRepository()
        {
            var openSession = MSpecAssemblyContext.NhibernateFluent().BuildSessionFactory().OpenSession();

            return(new NhibernateRepository(openSession));
        }