diff --git a/Dfe.Academies.Academisation.Data.UnitTest/ProjectAggregate/CreateSponsoredProjectCommandTests.cs b/Dfe.Academies.Academisation.Data.UnitTest/ProjectAggregate/CreateSponsoredProjectCommandTests.cs index 0b5af9d40..5a2c6bf24 100644 --- a/Dfe.Academies.Academisation.Data.UnitTest/ProjectAggregate/CreateSponsoredProjectCommandTests.cs +++ b/Dfe.Academies.Academisation.Data.UnitTest/ProjectAggregate/CreateSponsoredProjectCommandTests.cs @@ -2,9 +2,9 @@ using System.Threading.Tasks; using AutoFixture; using Dfe.Academies.Academisation.Core; -using Dfe.Academies.Academisation.Core.ProjectAggregate; using Dfe.Academies.Academisation.Data.ProjectAggregate; using Dfe.Academies.Academisation.Data.UnitTest.Contexts; +using Dfe.Academies.Academisation.Domain.Core.ProjectAggregate; using Dfe.Academies.Academisation.IData.ProjectAggregate; using FluentAssertions; using Xunit; diff --git a/Dfe.Academies.Academisation.Data/ProjectAggregate/CreateSponsoredProjectDataCommand.cs b/Dfe.Academies.Academisation.Data/ProjectAggregate/CreateSponsoredProjectDataCommand.cs index d439366fc..12da2d6c6 100644 --- a/Dfe.Academies.Academisation.Data/ProjectAggregate/CreateSponsoredProjectDataCommand.cs +++ b/Dfe.Academies.Academisation.Data/ProjectAggregate/CreateSponsoredProjectDataCommand.cs @@ -1,4 +1,5 @@ using Dfe.Academies.Academisation.Core; +using Dfe.Academies.Academisation.Domain.Core.ProjectAggregate; using Dfe.Academies.Academisation.Domain.ProjectAggregate; using Dfe.Academies.Academisation.IData.ProjectAggregate; using Dfe.Academies.Academisation.IDomain.ProjectAggregate; @@ -13,7 +14,7 @@ public CreateSponsoredProjectDataCommand(IProjectCreateDataCommand projectCreate _projectCreateDataCommand = projectCreateDataCommand; } - public async Task Execute(Core.ProjectAggregate.SponsoredProject project) + public async Task Execute(SponsoredProject project) { var domainServiceResult = Project.CreateSponsoredProject(project); diff --git a/Dfe.Academies.Academisation.Domain.Core/ProjectAggregate/SponsoredProject.cs b/Dfe.Academies.Academisation.Domain.Core/ProjectAggregate/SponsoredProject.cs index dc2447ac1..7100408fd 100644 --- a/Dfe.Academies.Academisation.Domain.Core/ProjectAggregate/SponsoredProject.cs +++ b/Dfe.Academies.Academisation.Domain.Core/ProjectAggregate/SponsoredProject.cs @@ -1,4 +1,4 @@ -namespace Dfe.Academies.Academisation.Core.ProjectAggregate +namespace Dfe.Academies.Academisation.Domain.Core.ProjectAggregate { public record SponsoredProject(SponsoredProjectSchool? School, SponsoredProjectTrust? Trust); public record SponsoredProjectTrust(string Name, string ReferenceNumber); diff --git a/Dfe.Academies.Academisation.Domain/ProjectAggregate/Project.cs b/Dfe.Academies.Academisation.Domain/ProjectAggregate/Project.cs index 7d769dbb8..8a49f51cb 100644 --- a/Dfe.Academies.Academisation.Domain/ProjectAggregate/Project.cs +++ b/Dfe.Academies.Academisation.Domain/ProjectAggregate/Project.cs @@ -1,5 +1,4 @@ using Dfe.Academies.Academisation.Core; -using Dfe.Academies.Academisation.Core.ProjectAggregate; using Dfe.Academies.Academisation.Domain.Core.ApplicationAggregate; using Dfe.Academies.Academisation.Domain.Core.ProjectAggregate; using Dfe.Academies.Academisation.IDomain.ApplicationAggregate; diff --git a/Dfe.Academies.Academisation.IData/ProjectAggregate/ICreateSponsoredProjectDataCommand.cs b/Dfe.Academies.Academisation.IData/ProjectAggregate/ICreateSponsoredProjectDataCommand.cs index 5f2c302b7..c8d7cde5e 100644 --- a/Dfe.Academies.Academisation.IData/ProjectAggregate/ICreateSponsoredProjectDataCommand.cs +++ b/Dfe.Academies.Academisation.IData/ProjectAggregate/ICreateSponsoredProjectDataCommand.cs @@ -1,6 +1,6 @@  using Dfe.Academies.Academisation.Core; -using Dfe.Academies.Academisation.Core.ProjectAggregate; +using Dfe.Academies.Academisation.Domain.Core.ProjectAggregate; namespace Dfe.Academies.Academisation.IData.ProjectAggregate { diff --git a/Dfe.Academies.Academisation.Service/Commands/Legacy/Project/CreateSponsoredProjectCommand.cs b/Dfe.Academies.Academisation.Service/Commands/Legacy/Project/CreateSponsoredProjectCommand.cs index 7b0d9d135..59047ef9e 100644 --- a/Dfe.Academies.Academisation.Service/Commands/Legacy/Project/CreateSponsoredProjectCommand.cs +++ b/Dfe.Academies.Academisation.Service/Commands/Legacy/Project/CreateSponsoredProjectCommand.cs @@ -1,6 +1,6 @@ using AutoMapper; using Dfe.Academies.Academisation.Core; -using Dfe.Academies.Academisation.Core.ProjectAggregate; +using Dfe.Academies.Academisation.Domain.Core.ProjectAggregate; using Dfe.Academies.Academisation.IData.ProjectAggregate; using Dfe.Academies.Academisation.IService.Commands.Legacy.Project; using Dfe.Academies.Academisation.IService.ServiceModels.Legacy.ProjectAggregate; diff --git a/Dfe.Academies.Academisation.WebApi/AutoMapper/AutoMapperSetup.cs b/Dfe.Academies.Academisation.WebApi/AutoMapper/AutoMapperSetup.cs index 39df0d117..c7415acc2 100644 --- a/Dfe.Academies.Academisation.WebApi/AutoMapper/AutoMapperSetup.cs +++ b/Dfe.Academies.Academisation.WebApi/AutoMapper/AutoMapperSetup.cs @@ -1,7 +1,7 @@ using Ardalis.GuardClauses; using AutoMapper; -using Dfe.Academies.Academisation.Core.ProjectAggregate; using Dfe.Academies.Academisation.Domain.ApplicationAggregate.Trusts; +using Dfe.Academies.Academisation.Domain.Core.ProjectAggregate; using Dfe.Academies.Academisation.IDomain.ApplicationAggregate; using Dfe.Academies.Academisation.IService.ServiceModels.Application; using Dfe.Academies.Academisation.IService.ServiceModels.Application.School;