Commit Graph

12 Commits

Author SHA1 Message Date
Artemy 97b2ea14b2 Test for friends controllers 2025-07-12 19:51:15 +07:00
Artemy e8e2078514 app.MapHub<FriendsHub>("/api/friends"); 2025-07-11 12:19:32 +07:00
Artemy d170c6270f hot fix for friends controller 2025-07-03 19:46:53 +07:00
Artemy 565d3249e5 Add online pinging and friendship verification features
Introduces OnlinePingingController and related integration/unit tests for user online status updates. Adds PingHandlerService with memory cache throttling, IPingHandlerService interface, and service registration. Implements VerifyFriendship service and interface for friendship validation, with exception handling. Refactors CurrentUserService for improved user ID extraction and testability. Updates ChatsHub to verify friendship before messaging. Cleans up MediaController and optimizes UsersRepository queries by removing unnecessary includes.
2025-07-02 19:16:49 +07:00
Artemy 5883f3e340 hot fix 2025-07-01 13:25:55 +07:00
Artemy f855b91155 Completed the development of tests for FriendsController 2025-07-01 11:43:11 +07:00
Artemy 8e245ea044 Test for SendRequest action 2025-06-30 19:27:29 +07:00
Artemy ab426979d0 Update AuthControllerTests.cs 2025-06-30 19:04:35 +07:00
Artemy 494c12df49 MySQL migration 2025-06-30 18:59:05 +07:00
Artemy f53ee6644b Refactor user context handling with CurrentUserService
Introduced ICurrentUserService and its implementation to centralize retrieval of the current user's ID from claims. Updated FriendsController to use this service instead of direct claim access. Registered the service and IHttpContextAccessor in DI. Added integration tests for FriendsController. Moved UsernameValidator to Infrastructure/Validators.
2025-06-30 17:37:02 +07:00
Artemy 4f3f4ec066 Refactor to introduce Govor.Application and Govor.Contracts layers
Moved service implementations and interfaces from Govor.API and Govor.Core to new Govor.Application and Govor.Contracts projects. Updated namespaces and references throughout the solution. Added custom exception classes for authentication and invite services. Adjusted dependency injection and project references to use the new structure. This refactor improves separation of concerns and prepares the codebase for better maintainability and scalability.
2025-06-25 15:16:14 +07:00
Artemy e40489db40 AuthControllerTests 2025-06-25 14:08:54 +07:00