mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 11:44:56 +00:00
Refactor: migrate Core -> Domain and reorganize projects
Large refactor that renames/moves core types into a new Govor.Domain surface and reorganizes the Application layer. Models, configurations, migrations and many files moved from Govor.Core/Govor.Data to Govor.Domain; numerous Application services, interfaces and implementations were relocated or added (authentication, friends, messages, medias, push notifications, user sessions, storage, synching, private chats, etc.). Tests updated to use Govor.Domain namespaces and adjusted project references (removed Govor.Data reference from API tests). Also updated API, Hub and mapping code and project files to reflect the new structure and naming. This is primarily a codebase-wide namespace and module reorganization to establish a Domain project and restructure application services.
This commit is contained in:
@@ -23,8 +23,4 @@
|
||||
<Using Include="NUnit.Framework"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Govor.Data\Govor.Data.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
using AutoFixture;
|
||||
using Govor.Core.Infrastructure.Validators;
|
||||
using Govor.Core.Models;
|
||||
using Govor.Core.Models.Users;
|
||||
using Govor.Data;
|
||||
using Govor.Data.Repositories;
|
||||
using Govor.Data.Repositories.Exceptions;
|
||||
using Govor.Domain.Infrastructure.Validators;
|
||||
using Govor.Domain.Models;
|
||||
using Govor.Domain.Models.Users;
|
||||
using Govor.Domain;
|
||||
using Govor.Domain.Repositories;
|
||||
using Govor.Domain.Repositories.Exceptions;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Govor.Data.Tests.Repositories;
|
||||
namespace Govor.Domain.Tests.Repositories;
|
||||
|
||||
[TestFixture]
|
||||
public class AdminsRepositoryTests
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
using AutoFixture;
|
||||
using Govor.Core.Infrastructure.Validators;
|
||||
using Govor.Core.Models;
|
||||
using Govor.Data;
|
||||
using Govor.Data.Repositories;
|
||||
using Govor.Data.Repositories.Exceptions;
|
||||
using Govor.Domain.Infrastructure.Validators;
|
||||
using Govor.Domain.Models;
|
||||
using Govor.Domain;
|
||||
using Govor.Domain.Repositories;
|
||||
using Govor.Domain.Repositories.Exceptions;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Govor.Data.Tests.Repositories;
|
||||
namespace Govor.Domain.Tests.Repositories;
|
||||
|
||||
[TestFixture]
|
||||
public class FriendshipsRepositoryTests
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
using AutoFixture;
|
||||
using Govor.Core.Infrastructure.Validators;
|
||||
using Govor.Core.Models;
|
||||
using Govor.Data;
|
||||
using Govor.Data.Repositories;
|
||||
using Govor.Data.Repositories.Exceptions;
|
||||
using Govor.Domain.Infrastructure.Validators;
|
||||
using Govor.Domain.Models;
|
||||
using Govor.Domain;
|
||||
using Govor.Domain.Repositories;
|
||||
using Govor.Domain.Repositories.Exceptions;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Govor.Data.Tests.Repositories;
|
||||
namespace Govor.Domain.Tests.Repositories;
|
||||
|
||||
[TestFixture]
|
||||
public class GroupRepositoryTests
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
using AutoFixture;
|
||||
using Govor.Core.Infrastructure.Validators;
|
||||
using Govor.Core.Models;
|
||||
using Govor.Data;
|
||||
using Govor.Data.Repositories;
|
||||
using Govor.Data.Repositories.Exceptions;
|
||||
using Govor.Domain.Infrastructure.Validators;
|
||||
using Govor.Domain.Models;
|
||||
using Govor.Domain;
|
||||
using Govor.Domain.Repositories;
|
||||
using Govor.Domain.Repositories.Exceptions;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Govor.Data.Tests.Repositories;
|
||||
namespace Govor.Domain.Tests.Repositories;
|
||||
|
||||
[TestFixture]
|
||||
public class InvitesRepositoryTests
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
using AutoFixture;
|
||||
using Govor.Core.Infrastructure.Validators;
|
||||
using Govor.Core.Models;
|
||||
using Govor.Core.Models.Messages;
|
||||
using Govor.Data;
|
||||
using Govor.Data.Repositories;
|
||||
using Govor.Data.Repositories.Exceptions;
|
||||
using Govor.Domain.Infrastructure.Validators;
|
||||
using Govor.Domain.Models;
|
||||
using Govor.Domain.Models.Messages;
|
||||
using Govor.Domain;
|
||||
using Govor.Domain.Repositories;
|
||||
using Govor.Domain.Repositories.Exceptions;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Govor.Data.Tests.Repositories;
|
||||
namespace Govor.Domain.Tests.Repositories;
|
||||
|
||||
[TestFixture]
|
||||
public class MediaAttachmentsTests
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
using AutoFixture;
|
||||
using Govor.Core.Infrastructure.Validators;
|
||||
using Govor.Core.Models;
|
||||
using Govor.Core.Models.Messages;
|
||||
using Govor.Data;
|
||||
using Govor.Data.Repositories;
|
||||
using Govor.Data.Repositories.Exceptions;
|
||||
using Govor.Domain.Infrastructure.Validators;
|
||||
using Govor.Domain.Models;
|
||||
using Govor.Domain.Models.Messages;
|
||||
using Govor.Domain;
|
||||
using Govor.Domain.Repositories;
|
||||
using Govor.Domain.Repositories.Exceptions;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Govor.Data.Tests.Repositories;
|
||||
namespace Govor.Domain.Tests.Repositories;
|
||||
|
||||
[TestFixture]
|
||||
public class MessagesRepositoryTests
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
using AutoFixture;
|
||||
using Govor.Core.Infrastructure.Validators;
|
||||
using Govor.Core.Models;
|
||||
using Govor.Data;
|
||||
using Govor.Data.Repositories;
|
||||
using Govor.Data.Repositories.Exceptions;
|
||||
using Govor.Domain.Infrastructure.Validators;
|
||||
using Govor.Domain.Models;
|
||||
using Govor.Domain;
|
||||
using Govor.Domain.Repositories;
|
||||
using Govor.Domain.Repositories.Exceptions;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Govor.Data.Tests.Repositories;
|
||||
namespace Govor.Domain.Tests.Repositories;
|
||||
|
||||
[TestFixture]
|
||||
public class PrivateChatsRepositoryTests
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using Govor.Core.Models.Users;
|
||||
using Govor.Data.Repositories;
|
||||
using Govor.Domain.Models.Users;
|
||||
using Govor.Domain.Repositories;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Govor.Data.Tests.Repositories;
|
||||
namespace Govor.Domain.Tests.Repositories;
|
||||
|
||||
[TestFixture]
|
||||
public class PushTokenRepositoryTests
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
using AutoFixture;
|
||||
using Govor.Core.Models;
|
||||
using Govor.Core.Models.Users;
|
||||
using Govor.Data.Repositories;
|
||||
using Govor.Data.Repositories.Exceptions;
|
||||
using Govor.Domain.Models;
|
||||
using Govor.Domain.Models.Users;
|
||||
using Govor.Domain.Repositories;
|
||||
using Govor.Domain.Repositories.Exceptions;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Govor.Data.Tests.Repositories;
|
||||
namespace Govor.Domain.Tests.Repositories;
|
||||
|
||||
[TestFixture]
|
||||
public class UserSessionsRepositoryTests
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
using AutoFixture;
|
||||
using Govor.Core.Infrastructure.Validators;
|
||||
using Govor.Core.Models;
|
||||
using Govor.Core.Models.Users;
|
||||
using Govor.Data;
|
||||
using Govor.Data.Repositories;
|
||||
using Govor.Data.Repositories.Exceptions;
|
||||
using Govor.Domain.Infrastructure.Validators;
|
||||
using Govor.Domain.Models;
|
||||
using Govor.Domain.Models.Users;
|
||||
using Govor.Domain;
|
||||
using Govor.Domain.Repositories;
|
||||
using Govor.Domain.Repositories.Exceptions;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Govor.Data.Tests.Repositories;
|
||||
namespace Govor.Domain.Tests.Repositories;
|
||||
|
||||
[TestFixture]
|
||||
public class UsersRepositoryTests
|
||||
|
||||
Reference in New Issue
Block a user