Anarchy.Toolkit.Testing.Db.Oracle
1.0.1
dotnet add package Anarchy.Toolkit.Testing.Db.Oracle --version 1.0.1
NuGet\Install-Package Anarchy.Toolkit.Testing.Db.Oracle -Version 1.0.1
<PackageReference Include="Anarchy.Toolkit.Testing.Db.Oracle" Version="1.0.1" />
<PackageVersion Include="Anarchy.Toolkit.Testing.Db.Oracle" Version="1.0.1" />
<PackageReference Include="Anarchy.Toolkit.Testing.Db.Oracle" />
paket add Anarchy.Toolkit.Testing.Db.Oracle --version 1.0.1
#r "nuget: Anarchy.Toolkit.Testing.Db.Oracle, 1.0.1"
#:package Anarchy.Toolkit.Testing.Db.Oracle@1.0.1
#addin nuget:?package=Anarchy.Toolkit.Testing.Db.Oracle&version=1.0.1
#tool nuget:?package=Anarchy.Toolkit.Testing.Db.Oracle&version=1.0.1
Anarchy.Toolkit.Testing.Db.Oracle
Part of Anarchy I/O Toolkit, a .NET developer platform · Pillar: Infrastructure · Layer: Testing kit · Package catalog
Oracle integration-test helpers for the toolkit's ODP.NET persistence adapter.
dotnet add package Anarchy.Toolkit.Testing.Db.Oracle
- Use
OracleHelperorSingletonOracleHelperfor connection, pool, resilience and unit-of-work fixtures. OracleOptionsMappermaps options; helpers include generic enum type-handler registration and table cleanup.- Tests need an Oracle instance and a schema appropriate to the consuming application. Truncation uses plain
TRUNCATE TABLE, without identity restart or cascade.
When to use it
Use this package to test Oracle-specific SQL, mappings and persistence behavior against a real, isolated Oracle schema. It builds toolkit persistence fixtures but does not start Oracle or install your application schema.
How to use it
- Configure a test settings type implementing
IOracleAppSettings; policy fixtures also requireIResilienceAppSettings. Point it at a dedicated test instance and service name. - Call
OracleHelper.DbPolicyFixture<TAppSettings>()orOracleHelper.DbUnitOfWorkFixture<TAppSettings>(), or pass a settings instance to the corresponding overload. Generic fixtures load embedded settings from the assembly declaring the settings type. - Use the policy or unit of work in your repository test. Register enum handlers where required and clean up known test tables with the shared helpers.
SingletonOracleHelper shares a policy when that fits the test lifecycle. Coordinate parallel tests and cleanup, and do not use production schemas or credentials.
See Infrastructure.Persistence.Db.Oracle, the testing conventions and the toolkit overview.
Releases
See the release notes for the complete release history.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Amazon.Extensions.Configuration.SystemsManager (>= 7.1.1)
- Amazon.Lambda.APIGatewayEvents (>= 3.0.1)
- Amazon.Lambda.Core (>= 3.4.0)
- Amazon.Lambda.TestUtilities (>= 4.3.0)
- Anarchy.Toolkit.Core.Telemetry (>= 1.0.1)
- Anarchy.Toolkit.Infrastructure.Persistence.Db.Oracle (>= 1.0.1)
- Anarchy.Toolkit.Testing (>= 2.0.1)
- Anarchy.Toolkit.Testing.Db (>= 2.0.1)
- AwesomeAssertions (>= 9.6.0)
- AWSSDK.Core (>= 4.1.1.2)
- AWSSDK.KeyManagementService (>= 4.1.1.1)
- AWSSDK.SecretsManager (>= 4.1.1.2)
- Dapper (= 2.1.79)
- Humanizer (>= 3.0.10)
- Microsoft.AspNetCore.WebUtilities (>= 10.0.15)
- Microsoft.Extensions.Caching.Memory (>= 10.0.15)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Configuration.Json (>= 10.0.15)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Diagnostics (>= 10.0.15)
- Microsoft.Extensions.Hosting (>= 10.0.15)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Logging (>= 10.0.15)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Options.DataAnnotations (>= 10.0.15)
- Microsoft.Identity.Client (>= 4.92.0)
- Microsoft.NET.Test.Sdk (>= 18.12.0)
- Moq (>= 4.21.0)
- Newtonsoft.Json (>= 13.0.4)
- Oracle.ManagedDataAccess.Core (>= 23.26.401)
- Polly.Core (>= 8.9.1)
- Spectre.Console (>= 0.57.2)
- System.Security.Cryptography.Pkcs (>= 10.0.15)
- xunit.v3.extensibility.core (>= 4.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
## Releases
### 1.0.1
- chore(build): Format package release notes property
### 1.0.0
- New package identity, renamed from `Anarchy.Toolkit.Testing.Oracle`; versions below are historical releases under that package ID.
- Include the unit-of-work failure handling and provider-neutral telemetry changes in the shared database test kit.
### Historical releases under `Anarchy.Toolkit.Testing.Oracle`
### 1.2.2
- build(deps): drop package references already resolved transitively
### 1.2.1
- docs(packages): identify each package's pillar and layer
- build(packages): attribute the copyright to Leandro Melão Medeiros
- build: relicense under Apache-2.0 and update the package metadata
### 1.2.0
- build(deps): upgrade Swashbuckle.AspNetCore to 11.0.1 and Microsoft.OpenApi to 3.11.1
### 1.1.7
- docs: expand XML docblocks across all projects for the DocFX API reference
### 1.1.6
- References `Anarchy.Toolkit.Infrastructure.Persistence.Oracle` 1.1.5, aligned with the .NET 10 LTS.
### 1.1.5
- refactor(src): clean up code style across library packages
- chore(deps): update AWS SDK, Lambda ASP.NET Core server and MySqlConnector packages
### 1.1.4
- chore(deps): update AWS SDK packages
### 1.1.2
- build: migrate local automation to build tooling
### 1.1.1
- docs: expand package guides and release histories
- chore(deps): update AWS, Polly, and xUnit packages
### 1.1.0
- Updated the database testing and Oracle persistence dependencies alongside configurable maximum pool size support.
### 1.0.1
- Added a package-specific NuGet README.
### 1.0.0
- Introduced Oracle integration test helpers, including a singleton variant and options mapper.