예제 #1
0
        public void UnitOfWorkSqlDialect_Equals_PostgreSql()
        {
            var factory = A.Fake <IDbFactory>();
            var target  = new TestPostgreSql(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.PostgreSql);
        }
예제 #2
0
        public void SqlDialect_Equals_PostgreSql()
        {
            var target = new TestPostgreSql(null, null);

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