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); }
public void SqlDialect_Equals_PostgreSql() { var target = new TestPostgreSql(null, null); Assert.That(target.SqlDialect == IoC.UnitOfWork.SqlDialect.PostgreSql); }