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(); }