Example #1
0
        public void UnitOfWorkSqlDialect_Equals_Sqlite()
        {
            var factory = A.Fake <IDbFactory>();
            var target  = new TestSqlite(factory, null);

            A.CallTo(() => factory.Create <IUnitOfWork>(A <IDbFactory> ._, A <ISession> ._, A <IsolationLevel> ._))
            .Returns(new Ioc.UnitOfWork.UnitOfWork(factory, target));
            Assert.That(target.UnitOfWork(IsolationLevel.Serializable).SqlDialect == Ioc.UnitOfWork.SqlDialect.SqLite);
        }
Example #2
0
        public void SqlDialect_Equals_Sqlite()
        {
            var target = new TestSqlite(null, null);

            Assert.That(target.SqlDialect == Ioc.UnitOfWork.SqlDialect.SqLite);
        }