How azamovsiyovush/kppsystem_test works
KPP is an employee and shift-management API: requests enter through Web API controllers, are handled by application commands or queries, and access persisted employee/shift data through repository interfaces. Its reporting workflow retrieves monthly shifts and calculates violations by employee position. The tree and source index support the main API, application, domain, and persistence layers; the README is empty, and not all handlers or wiring were excerpted, so some relationships are omitted.
Main entry points: GetMonthlyViolationsQueryHandler.cs Violation report · Employees/Handlers Employee operations · KPP/Handlers Shift operations · IEmployeeRepository.cs Employee contracts
Components 19
Web API
- Employee API
KPP.WebApi/Controllers/EmployeeController.cs - Shift API
KPP.WebApi/Controllers/KppController.cs - Statistics API
KPP.WebApi/Controllers/StatisticsController.cs
Application
- Employee operations
KPP.Application/Features/Employees/Handlers - Shift operations
KPP.Application/Features/KPP/Handlers - Violation report
KPP.Application/Features/KPP/Handlers/GetMonthlyViolationsQueryHandler.cs - Employee contracts
KPP.Application/Interfaces/Repositories/IEmployeeRepository.cs - Shift contracts
KPP.Application/Interfaces/Repositories/IShiftRepository.cs - Command handling
KPP.Application/Interfaces/Commands/ICommandHandler.cs - Query handling
KPP.Application/Interfaces/Queries/IQueryHandler.cs - Result envelope
KPP.Application/Common/Results/Result.cs
Domain
- Employee
KPP.Domain/Entities/Employee.cs - Shift
KPP.Domain/Entities/Shift.cs - Job positions
KPP.Domain/Enums/Position.cs
Persistence
- Employee repository
KPP.Infrastructure/Persistence/Repositories/EmployeeRepository.cs - Shift repository
KPP.Infrastructure/Persistence/Repositories/ShiftRepository.cs - Unit of work
KPP.Infrastructure/Persistence/Repositories/UnitOfWork.cs - Application database
KPP.Infrastructure/ApplicationDbContext.cs
Other components
- API Client
Connections 20
- API Client → Employee API: requests
KPP.WebApi/Controllers/EmployeeController.cs - API Client → Shift API: requests
KPP.WebApi/Controllers/KppController.cs - API Client → Statistics API: requests
KPP.WebApi/Controllers/StatisticsController.cs - Employee API → Employee operations: dispatches
KPP.WebApi/Controllers/EmployeeController.cs - Shift API → Shift operations: dispatches
KPP.WebApi/Controllers/KppController.cs - Statistics API → Violation report: dispatches
KPP.WebApi/Controllers/StatisticsController.cs - Employee operations → Employee contracts: uses
KPP.Application/Features/Employees/Handlers/UpdateEmployeeCommandHandler.cs - Shift operations → Employee contracts: uses
KPP.Application/Features/KPP/Handlers/StartShiftCommandHandler.cs - Shift operations → Shift contracts: uses
KPP.Application/Features/KPP/Handlers/StartShiftCommandHandler.cs - Violation report → Shift contracts: loads shifts
KPP.Application/Features/KPP/Handlers/GetMonthlyViolationsQueryHandler.cs - Violation report → Job positions: checks position
KPP.Application/Features/KPP/Handlers/GetMonthlyViolationsQueryHandler.cs - Employee repository → Application database: queries
KPP.Infrastructure/Persistence/Repositories/EmployeeRepository.cs - Shift repository → Application database: queries
KPP.Infrastructure/Persistence/Repositories/ShiftRepository.cs - Unit of work → Application database: saves changes
KPP.Infrastructure/Persistence/Repositories/UnitOfWork.cs - Employee repository → Employee contracts: implements
KPP.Infrastructure/Persistence/Repositories/EmployeeRepository.cs - Shift repository → Shift contracts: implements
KPP.Infrastructure/Persistence/Repositories/ShiftRepository.cs - Employee operations → Command handling: implements
KPP.Application/Features/Employees/Handlers/UpdateEmployeeCommandHandler.cs - Violation report → Query handling: implements
KPP.Application/Features/KPP/Handlers/GetMonthlyViolationsQueryHandler.cs - Employee → Job positions: has role
KPP.Domain/Entities/Employee.cs - Shift → Employee: references employee
KPP.Domain/Entities/Shift.cs