mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 22:16:33 +00:00
d320d6dd59
Made-with: Cursor
1.2 KiB
1.2 KiB
Module: Azaion.Test.UserServiceTest
Purpose
xUnit integration test for UserService.CheckHardwareHash against a live PostgreSQL database.
Public Interface
| Test | Description |
|---|---|
CheckHardwareHashTest |
Looks up a known user by email, then calls CheckHardwareHash with a hardware fingerprint string |
Internal Logic
- Creates a
DbFactorywith hardcoded connection strings pointing to a remote PostgreSQL instance. - Creates a
UserServicewith that factory and a freshMemoryCache. - Fetches user
spielberg@azaion.com, then callsCheckHardwareHashwith a specific hardware string. - No assertion — the test only verifies no exception is thrown.
Dependencies
UserService,DbFactory,MemoryCacheConnectionStrings,OptionsWrapper- xUnit
Consumers
None — test module.
Data Models
None.
Configuration
Hardcoded connection strings to 188.245.120.247:4312 (remote database).
External Integrations
Live PostgreSQL database (remote server).
Security
Contains hardcoded database credentials in source code. This is a security concern — credentials should be in test configuration or environment variables.
Tests
This IS the test module.