public void ConnectionTest() {
            var repository = new OdpNetRepositoryImpl();
            repository.Should().Not.Be.Null();
            repository.Db.Should().Not.Be.Null();

            var tableCount = repository.ExecuteScalar("SELECT COUNT(*) FROM TAB").AsInt();
            tableCount.Should().Be.GreaterThan(0);
        }
        public void CreateTest() {
            var repository = new OdpNetRepositoryImpl();
            repository.Should().Not.Be.Null();
            repository.Db.Should().Not.Be.Null();

            repository = new OdpNetRepositoryImpl(AdoTool.DefaultDatabaseName);
            repository.Should().Not.Be.Null();
            repository.Db.Should().Not.Be.Null();
        }
Exemplo n.º 3
0
        public void ConnectionTest()
        {
            var repository = new OdpNetRepositoryImpl();

            repository.Should().Not.Be.Null();
            repository.Db.Should().Not.Be.Null();

            var tableCount = repository.ExecuteScalar("SELECT COUNT(*) FROM TAB").AsInt();

            tableCount.Should().Be.GreaterThan(0);
        }
Exemplo n.º 4
0
        public void CreateTest()
        {
            var repository = new OdpNetRepositoryImpl();

            repository.Should().Not.Be.Null();
            repository.Db.Should().Not.Be.Null();

            repository = new OdpNetRepositoryImpl(AdoTool.DefaultDatabaseName);
            repository.Should().Not.Be.Null();
            repository.Db.Should().Not.Be.Null();
        }