How harjuniya/tesingrepositrycsp4_apitesting works
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: ApplicationDbContext.cs Database context · MemberRepository.cs Member repository · MembersController.cs Member endpoints · MemberService.cs Member service
Components 22
API surface
- Member endpoints
csp4_api/Controllers/MembersController.cs - Authentication endpoints
csp4_api/Controllers/AuthController.cs - Banking and wallet endpoints
csp4_api/Controllers/BankingController.cs - Transaction endpoints
csp4_api/Controllers/TransactionsController.cs - KYC endpoints
csp4_api/Controllers/KycController.cs - Pricing endpoints
csp4_api/Controllers/PricingController.cs - Reporting endpoints
csp4_api/Controllers/ReportsController.cs - Statement endpoints
csp4_api/Controllers/StatementsController.cs - Dashboard endpoints
csp4_api/Controllers/DashboardController.cs - Business endpoints
csp4_api/Controllers/BusinessController.cs - Settings endpoints
csp4_api/Controllers/SettingsController.cs
Identity and membership
- Member service
csp4_api/Services/MemberService.cs - Member repository
csp4_api/Repositories/MemberRepository.cs - Authentication service
csp4_api/Services/AuthService.cs - Authentication repository
csp4_api/Repositories/AuthRepository.cs - User and member records
csp4_api/Models/User.cs
Financial operations
- Financial transactions
csp4_api/Models/FinancialTransaction.cs - Provider routing and transactions
csp4_api/Models/ScpServiceProvider.cs - Settlement and reconciliation
csp4_api/Models/SettlementBatch.cs
Persistence
- Database context
csp4_api/DATA/ApplicationDbContext.cs - MySQL database
Other components
- API client
Connections 9
- API client → Member endpoints: submits requests
csp4_api/Controllers/MembersController.cs - Member endpoints → Member service: calls
csp4_api/Controllers/MembersController.cs - Member service → Member repository: delegates
csp4_api/Services/MemberService.cs - Member repository → Database context: queries and writes
csp4_api/Repositories/MemberRepository.cs - Database context → MySQL database: configures connection
- Member repository → User and member records: creates users
csp4_api/Repositories/MemberRepository.cs - Database context → Financial transactions: maps entities
csp4_api/DATA/ApplicationDbContext.cs - Database context → Provider routing and transactions: maps entities
csp4_api/DATA/ApplicationDbContext.cs - Database context → Settlement and reconciliation: maps entities
csp4_api/DATA/ApplicationDbContext.cs