From dfb721c2f8ae946a7a8a993024edd5529ac6cf9a Mon Sep 17 00:00:00 2001 From: David Headrick Date: Thu, 20 Feb 2025 09:21:22 -0600 Subject: [PATCH] Update project dependencies and structure Revised the dependency order in the project structure. The `Surge365.MassEmailReact.API` now depends on both `Application` and `Infrastructure`. Removed the reference to `Infrastructure` in `Surge365.MassEmailReact.Application.csproj`. Updated `Surge365.MassEmailReact.Infrastructure.csproj` to include references to both `Application` and `Domain`. Modified `Surge365.MassEmailReact.API.csproj` to include a reference to `Surge365.MassEmailReact.Infrastructure`. --- README.md | 5 ++++- .../Surge365.MassEmailReact.Application.csproj | 1 - .../Surge365.MassEmailReact.Infrastructure.csproj | 5 +++++ .../Surge365.MassEmailReact.API.csproj | 1 + 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 638936c..9c5fee9 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,10 @@ This project consists of multiple layers to ensure separation of concerns and ma 1. **Surge365.MassEmailReact.Domain** - Contains core business logic and domain entities. 2. **Surge365.MassEmailReact.Application** - Handles application logic and use cases. Depends on `Domain`. 3. **Surge365.MassEmailReact.Infrastructure** - Provides data access, external integrations, and persistence. Depends on `Application` and `Domain`. -4. **Surge365.MassEmailReact.API** - The API layer that serves endpoints. Depends on `Application`. +4. **Surge365.MassEmailReact.API** - The API layer that serves endpoints. Depends on `Application` and `Infrastructure`. 5. **Surge365.MassEmailReact.Web** - The front-end application. Communicates with `API`. 6. **Surge365.MassEmailReact.UnitTests** - Contains unit tests for various layers of the application. +API ───► Application ───► Domain + +API ───► Infrastructure ───► Application & Domain diff --git a/Surge365.MassEmailReact.Application/Surge365.MassEmailReact.Application.csproj b/Surge365.MassEmailReact.Application/Surge365.MassEmailReact.Application.csproj index cffc2e6..93308b4 100644 --- a/Surge365.MassEmailReact.Application/Surge365.MassEmailReact.Application.csproj +++ b/Surge365.MassEmailReact.Application/Surge365.MassEmailReact.Application.csproj @@ -8,7 +8,6 @@ - diff --git a/Surge365.MassEmailReact.Infrastructure/Surge365.MassEmailReact.Infrastructure.csproj b/Surge365.MassEmailReact.Infrastructure/Surge365.MassEmailReact.Infrastructure.csproj index 125f4c9..852f009 100644 --- a/Surge365.MassEmailReact.Infrastructure/Surge365.MassEmailReact.Infrastructure.csproj +++ b/Surge365.MassEmailReact.Infrastructure/Surge365.MassEmailReact.Infrastructure.csproj @@ -6,4 +6,9 @@ enable + + + + + diff --git a/Surge365.MassEmailReact.Server/Surge365.MassEmailReact.API.csproj b/Surge365.MassEmailReact.Server/Surge365.MassEmailReact.API.csproj index 37ebb9a..0a18f36 100644 --- a/Surge365.MassEmailReact.Server/Surge365.MassEmailReact.API.csproj +++ b/Surge365.MassEmailReact.Server/Surge365.MassEmailReact.API.csproj @@ -18,6 +18,7 @@ +