Skip to content

Architeture Tests#13

Merged
jldsilva merged 1 commit into
mainfrom
development
May 23, 2025
Merged

Architeture Tests#13
jldsilva merged 1 commit into
mainfrom
development

Conversation

@jldsilva
Copy link
Copy Markdown
Owner

@jldsilva jldsilva commented May 23, 2025

  • Adicionados testes de arquitetura;
  • Correção de nomes para as classes base de Repository e AppServices para seguir uma convenção de nomenclatura mais concisa.

Description by Callstackai

This PR introduces architecture tests and renames classes for better naming conventions in the Repository and AppServices layers.

Diagrams of code changes
sequenceDiagram
    participant Client
    participant IBaseAppService
    participant BaseAppService
    participant ConcreteAppService
    participant IBaseRepository
    participant BaseRepository
    participant ConcreteRepository
    participant DbContext

    Note over IBaseAppService,BaseAppService: Base Service Layer
    Note over IBaseRepository,DbContext: Base Repository Layer
    
    Client->>IBaseAppService: Makes request
    IBaseAppService->>BaseAppService: Implements interface
    BaseAppService->>ConcreteAppService: Inherits (Invoice,User,JobSchedule,etc)
    
    ConcreteAppService->>IBaseRepository: Uses
    IBaseRepository->>BaseRepository: Implements interface
    BaseRepository->>ConcreteRepository: Inherits (Invoice,User,JobSchedule,etc)
    ConcreteRepository->>DbContext: Uses for data access

    Note right of ConcreteAppService: Concrete implementations:<br/>InvoiceAppService<br/>UserAppService<br/>JobScheduleAppService<br/>ScanEmailDefinitionAppService
    Note right of ConcreteRepository: Concrete implementations:<br/>InvoiceRepository<br/>UserRepository<br/>JobScheduleRepository<br/>ScanEmailDefinitionRepository
Loading
Files Changed
FileSummary
InvoiceReminder.API/Endpoints/LoginEndpoints.csRenamed LoginEndpoint class to LoginEndpoints.
InvoiceReminder.Application.UnitTests/AppServices/BaseAppServiceTests.csRenamed AppServiceBaseTests class to BaseAppServiceTests and updated references.
InvoiceReminder.Application/AppServices/BaseAppService.csRenamed AppServiceBase class to BaseAppService.
InvoiceReminder.Application/AppServices/InvoiceAppService.csUpdated inheritance from AppServiceBase to BaseAppService.
InvoiceReminder.Application/AppServices/JobScheduleAppService.csUpdated inheritance from AppServiceBase to BaseAppService.
InvoiceReminder.Application/AppServices/ScanEmailDefinitionAppService.csUpdated inheritance from AppServiceBase to BaseAppService.
InvoiceReminder.Application/AppServices/UserAppService.csUpdated inheritance from AppServiceBase to BaseAppService.
InvoiceReminder.Application/Interfaces/IBaseAppService.csRenamed IAppServiceBase interface to IBaseAppService.
InvoiceReminder.Application/Interfaces/IInvoiceAppService.csUpdated inheritance from IAppServiceBase to IBaseAppService.
InvoiceReminder.Application/Interfaces/IJobScheduleAppService.csUpdated inheritance from IAppServiceBase to IBaseAppService.
InvoiceReminder.Application/Interfaces/IScanEmailDefinitionAppService.csUpdated inheritance from IAppServiceBase to IBaseAppService.
InvoiceReminder.Application/Interfaces/IUserAppService.csUpdated inheritance from IAppServiceBase to IBaseAppService.
InvoiceReminder.ArchitectureTests/Domain/EntitiesTests.csAdded tests to ensure domain layer has no dependencies on other layers.
InvoiceReminder.ArchitectureTests/Domain/ExtensionsTests.csAdded tests to check visibility of extension methods from repository classes.
InvoiceReminder.ArchitectureTests/Infrastructure/EntitiesConfigTest.csAdded tests to validate entity configuration implementations.
InvoiceReminder.ArchitectureTests/Infrastructure/RepositoriesTests.csAdded tests to ensure repositories only depend on the domain layer.
InvoiceReminder.ArchitectureTests/Presentation/EndpointsTests.csAdded tests to validate endpoint definitions and dependencies.
InvoiceReminder.ArchitectureTests/Services/AppServicesTests.csAdded tests to validate application layer service dependencies.
InvoiceReminder.ArchitectureTests/Services/ViewModelsTests.csAdded tests to ensure view models are accessible from presentation.

This PR includes files in programming languages that we currently do not support. We have not reviewed files with the extensions .cs, .csproj, .sln. See list of supported languages.

- Adicionados testes de arquitetura;
- Correção de nomes para as classes base de Repository e AppServices para seguir uma convenção de nomenclatura mais concisa.
@jldsilva jldsilva merged commit 69c70d4 into main May 23, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant