コード例 #1
0
        public void UnitOfWorkSqlDialect_Equals_MsSql()
        {
            var factory = A.Fake <IDbFactory>();
            var target  = new TestMsSql(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.MsSql);
        }
コード例 #2
0
        public void SqlDialect_Equals_MsSql()
        {
            var target = new TestMsSql(null, null);

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