mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 10:16:32 +00:00
[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:
@@ -0,0 +1,34 @@
|
||||
# Module: Azaion.Common.Extensions.StringExtensions
|
||||
|
||||
## Purpose
|
||||
Provides a `ToSnakeCase` string extension for converting PascalCase/camelCase identifiers to snake_case.
|
||||
|
||||
## Public Interface
|
||||
|
||||
| Method | Signature | Description |
|
||||
|--------|-----------|-------------|
|
||||
| `ToSnakeCase` | `static string ToSnakeCase(this string text)` | Converts PascalCase to snake_case (e.g., `PasswordHash` → `password_hash`) |
|
||||
|
||||
## Internal Logic
|
||||
Iterates characters; prepends `_` before each uppercase letter and lowercases it. Returns original text for null/empty/single-char inputs.
|
||||
|
||||
## Dependencies
|
||||
- `System.Text.StringBuilder` (BCL only)
|
||||
|
||||
## Consumers
|
||||
- `AzaionDbSchemaHolder` — uses `ToSnakeCase` to map C# property names to PostgreSQL column names
|
||||
|
||||
## Data Models
|
||||
None.
|
||||
|
||||
## Configuration
|
||||
None.
|
||||
|
||||
## External Integrations
|
||||
None.
|
||||
|
||||
## Security
|
||||
None.
|
||||
|
||||
## Tests
|
||||
None.
|
||||
Reference in New Issue
Block a user