[AZ-189] [AZ-190] [AZ-191] [AZ-192] [AZ-193] [AZ-194] [AZ-195] Add e2e blackbox test suite

Made-with: Cursor
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-04-16 06:25:36 +03:00
parent 1b38e888e1
commit d320d6dd59
98 changed files with 6883 additions and 1 deletions
@@ -0,0 +1,36 @@
# Module: Azaion.Common.Database.AzaionDb
## Purpose
linq2db `DataConnection` subclass representing the application's database context.
## Public Interface
| Member | Type | Description |
|--------|------|-------------|
| Constructor | `AzaionDb(DataOptions dataOptions)` | Initializes connection with pre-configured options |
| `Users` | `ITable<User>` | Typed table accessor for the `users` table |
## Internal Logic
Delegates all connection management to the base `DataConnection` class. `Users` property calls `this.GetTable<User>()`.
## Dependencies
- `User` entity
- linq2db (`LinqToDB.Data.DataConnection`, `LinqToDB.ITable<T>`)
## Consumers
- `DbFactory` — creates `AzaionDb` instances inside `Run`/`RunAdmin` methods
## Data Models
Provides access to the `users` table.
## Configuration
Receives `DataOptions` (containing connection string + mapping schema) from `DbFactory`.
## External Integrations
PostgreSQL database via Npgsql.
## Security
None at this level; connection string security is handled by `DbFactory`.
## Tests
Indirectly used by `UserServiceTest`.