# harjuniya/tesingrepositrycsp4_apitesting architecture

> Architecture diagram of the GitHub repository harjuniya/tesingrepositrycsp4_apitesting, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/harjuniya/tesingrepositrycsp4_apitesting
- Repository: https://github.com/harjuniya/tesingrepositrycsp4_apitesting

## Overview

This repository is a .NET API for member administration and financial-service operations. The clearest traced workflow is member creation and approval: an API controller calls the member service, which hashes credentials or validates requests and delegates persistence to a repository backed by the database context. The tree also exposes authentication, banking, KYC, transactions, wallets, pricing, reporting, statements, and settings as distinct API areas. Those areas are represented, but their internal call paths are not inferred because their source was not sampled and the README is empty.

Main entry points: [`csp4_api/DATA/ApplicationDbContext.cs`](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/DATA/ApplicationDbContext.cs) (Database context), [`csp4_api/Repositories/MemberRepository.cs`](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Repositories/MemberRepository.cs) (Member repository), [`csp4_api/Controllers/MembersController.cs`](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/MembersController.cs) (Member endpoints), [`csp4_api/Services/MemberService.cs`](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Services/MemberService.cs) (Member service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["API surface"]
  node_member_api["Member endpoints"]
  node_auth_api["Authentication endpoints<br/>[AuthController.cs]"]
  node_financial_api["Banking and wallet endpoints"]
  node_transaction_api["Transaction endpoints"]
  node_kyc_api["KYC endpoints<br/>[KycController.cs]"]
  node_pricing_api["Pricing endpoints"]
  node_report_api["Reporting endpoints"]
  node_statements_api["Statement endpoints"]
  node_dashboard_api["Dashboard endpoints"]
  node_business_api["Business endpoints"]
  node_settings_api["Settings endpoints"]
end

subgraph group_identity["Identity and membership"]
  node_member_service["Member service<br/>[MemberService.cs]"]
  node_member_repo["Member repository"]
  node_auth_service["Authentication service<br/>[AuthService.cs]"]
  node_auth_repo["Authentication repository<br/>[AuthRepository.cs]"]
  node_member_models["User and member records<br/>[User.cs]"]
end

subgraph group_finance["Financial operations"]
  node_transactions["Financial transactions"]
  node_provider_ops["Provider routing and transactions"]
  node_settlement["Settlement and reconciliation<br/>[SettlementBatch.cs]"]
end

subgraph group_data["Persistence"]
  node_db_context["Database context"]
  node_mysql[("MySQL database")]
end

node_client(("API client"))

node_client -->|"submits requests"| node_member_api
node_member_api -->|"calls"| node_member_service
node_member_service -->|"delegates"| node_member_repo
node_member_repo -->|"queries and writes"| node_db_context
node_db_context -->|"configures connection"| node_mysql
node_member_repo -->|"creates users"| node_member_models
node_db_context -->|"maps entities"| node_transactions
node_db_context -->|"maps entities"| node_provider_ops
node_db_context -->|"maps entities"| node_settlement

click node_member_api "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/MembersController.cs"
click node_auth_api "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/AuthController.cs"
click node_financial_api "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/BankingController.cs"
click node_transaction_api "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/TransactionsController.cs"
click node_kyc_api "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/KycController.cs"
click node_pricing_api "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/PricingController.cs"
click node_report_api "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/ReportsController.cs"
click node_statements_api "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/StatementsController.cs"
click node_dashboard_api "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/DashboardController.cs"
click node_business_api "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/BusinessController.cs"
click node_settings_api "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/SettingsController.cs"
click node_member_service "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Services/MemberService.cs"
click node_member_repo "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Repositories/MemberRepository.cs"
click node_auth_service "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Services/AuthService.cs"
click node_auth_repo "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Repositories/AuthRepository.cs"
click node_member_models "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Models/User.cs"
click node_transactions "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Models/FinancialTransaction.cs"
click node_provider_ops "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Models/ScpServiceProvider.cs"
click node_settlement "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Models/SettlementBatch.cs"
click node_db_context "https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/DATA/ApplicationDbContext.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_member_api,node_auth_api,node_financial_api,node_transaction_api,node_kyc_api,node_pricing_api,node_report_api,node_statements_api,node_dashboard_api,node_business_api,node_settings_api,node_client toneBlue
class node_member_service,node_member_repo,node_auth_service,node_auth_repo,node_member_models toneAmber
class node_transactions,node_provider_ops,node_settlement toneMint
class node_db_context,node_mysql toneRose
```

## Components

### API surface

- [Member endpoints](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/MembersController.cs): `csp4_api/Controllers/MembersController.cs`
- [Authentication endpoints](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/AuthController.cs): `csp4_api/Controllers/AuthController.cs`
- [Banking and wallet endpoints](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/BankingController.cs): `csp4_api/Controllers/BankingController.cs`
- [Transaction endpoints](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/TransactionsController.cs): `csp4_api/Controllers/TransactionsController.cs`
- [KYC endpoints](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/KycController.cs): `csp4_api/Controllers/KycController.cs`
- [Pricing endpoints](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/PricingController.cs): `csp4_api/Controllers/PricingController.cs`
- [Reporting endpoints](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/ReportsController.cs): `csp4_api/Controllers/ReportsController.cs`
- [Statement endpoints](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/StatementsController.cs): `csp4_api/Controllers/StatementsController.cs`
- [Dashboard endpoints](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/DashboardController.cs): `csp4_api/Controllers/DashboardController.cs`
- [Business endpoints](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/BusinessController.cs): `csp4_api/Controllers/BusinessController.cs`
- [Settings endpoints](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Controllers/SettingsController.cs): `csp4_api/Controllers/SettingsController.cs`

### Identity and membership

- [Member service](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Services/MemberService.cs): `csp4_api/Services/MemberService.cs`
- [Member repository](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Repositories/MemberRepository.cs): `csp4_api/Repositories/MemberRepository.cs`
- [Authentication service](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Services/AuthService.cs): `csp4_api/Services/AuthService.cs`
- [Authentication repository](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Repositories/AuthRepository.cs): `csp4_api/Repositories/AuthRepository.cs`
- [User and member records](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Models/User.cs): `csp4_api/Models/User.cs`

### Financial operations

- [Financial transactions](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Models/FinancialTransaction.cs): `csp4_api/Models/FinancialTransaction.cs`
- [Provider routing and transactions](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Models/ScpServiceProvider.cs): `csp4_api/Models/ScpServiceProvider.cs`
- [Settlement and reconciliation](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/Models/SettlementBatch.cs): `csp4_api/Models/SettlementBatch.cs`

### Persistence

- [Database context](https://github.com/harjuniya/tesingrepositrycsp4_apitesting/blob/master/csp4_api/DATA/ApplicationDbContext.cs): `csp4_api/DATA/ApplicationDbContext.cs`
- **MySQL database**

### Other components

- **API client**

## Connections

- API client → Member endpoints: submits requests (evidence: `csp4_api/Controllers/MembersController.cs`)
- Member endpoints → Member service: calls (evidence: `csp4_api/Controllers/MembersController.cs`)
- Member service → Member repository: delegates (evidence: `csp4_api/Services/MemberService.cs`)
- Member repository → Database context: queries and writes (evidence: `csp4_api/Repositories/MemberRepository.cs`)
- Database context → MySQL database: configures connection
- Member repository → User and member records: creates users (evidence: `csp4_api/Repositories/MemberRepository.cs`)
- Database context → Financial transactions: maps entities (evidence: `csp4_api/DATA/ApplicationDbContext.cs`)
- Database context → Provider routing and transactions: maps entities (evidence: `csp4_api/DATA/ApplicationDbContext.cs`)
- Database context → Settlement and reconciliation: maps entities (evidence: `csp4_api/DATA/ApplicationDbContext.cs`)
