Conversation
Introduces a TestBase class to centralize test setup for in-memory database and AutoMapper configuration.
Introduced unit tests for BoxTagService, ItemTagService, StoreTagService, and TagService, covering CRUD operations and bulk actions.
Refactored CameraService and ConfigService to use IHttpClientFactory for HTTP requests and updated their constructors for dependency injection. Improved SmtpService to support easier testing and added SendMailAsync to the interface. Added unit tests for SessionService and SmtpService, including a new HttpContextAccessorMockFactory utility for test setup. Enhanced TagServiceTests for null safety and expanded ProgramTests with Swagger and authentication-related tests.
Introduces IJwtService interface and updates JwtService to implement it with async token generation. Refactors AuthService to depend on IJwtService. Updates dependency injection registration and adds comprehensive unit tests for AuthService and ConfigService.
Introduces comprehensive unit tests for FileService and JwiService, covering file operations (S3/local), thumbnail generation, directory management, and JWT/session management. Also fixes token revocation logic in JwiService to consider expiration, and corrects parameter usage in FileService thumbnail generation.
unit tests for CommandCommentaireService, CommandItemService, CommandService, ItemBoxService, and ProjetService.
unit tests for ProjetCommentaireService, ProjetItemService, ProjetProjetTagService, ProjetStatusService, and ProjetTagService.
Introduces unit tests API controllers
Added unit tests for validators and for ExceptionsHandler middleware to verify correct HTTP status codes and logging behavior for various exception types. Updated IAService to use IHttpClientFactory for HTTP client creation, improving testability.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request significantly expands and refactors the test coverage for the electrostore API.