mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +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:
@@ -1,6 +1,6 @@
|
||||
using AutoFixture;
|
||||
using Govor.Core.Infrastructure.Validators;
|
||||
using Govor.Core.Models;
|
||||
using Govor.Domain.Common.Constants;
|
||||
using Govor.Domain.Models;
|
||||
|
||||
namespace Govor.API.Tests.UnitTests.Infrastructure.Validators;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using AutoFixture;
|
||||
using Govor.Core.Infrastructure.Validators;
|
||||
using Govor.Core.Models;
|
||||
using Govor.Domain.Common.Constants;
|
||||
using Govor.Domain.Models;
|
||||
|
||||
namespace Govor.API.Tests.UnitTests.Infrastructure.Validators;
|
||||
|
||||
|
||||
+5
-5
@@ -1,18 +1,18 @@
|
||||
using AutoFixture;
|
||||
using Govor.Core.Infrastructure.Validators;
|
||||
using Govor.Core.Models;
|
||||
using Govor.Domain.Common.Constants;
|
||||
using Govor.Domain.Models;
|
||||
|
||||
namespace Govor.API.Tests.UnitTests.Infrastructure.Validators;
|
||||
|
||||
[TestFixture]
|
||||
public class InvitationValidatorTests
|
||||
public class InvitationConstantsTests
|
||||
{
|
||||
private IObjectValidator<Invitation> _messageValidator;
|
||||
private Fixture _fixture;
|
||||
|
||||
public InvitationValidatorTests()
|
||||
public InvitationConstantsTests()
|
||||
{
|
||||
_messageValidator = new InvitationValidator();
|
||||
_messageValidator = new InvitationConstants();
|
||||
|
||||
_fixture = new Fixture();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using AutoFixture;
|
||||
using Govor.Core.Infrastructure.Validators;
|
||||
using Govor.Core.Models;
|
||||
using Govor.Core.Models.Messages;
|
||||
using Govor.Domain.Common.Constants;
|
||||
using Govor.Domain.Models;
|
||||
using Govor.Domain.Models.Messages;
|
||||
|
||||
namespace Govor.API.Tests.UnitTests.Infrastructure.Validators;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using AutoFixture;
|
||||
using Govor.Core.Infrastructure.Validators;
|
||||
using Govor.Core.Models;
|
||||
using Govor.Domain.Common.Constants;
|
||||
using Govor.Domain.Models;
|
||||
|
||||
namespace Govor.API.Tests.UnitTests.Infrastructure.Validators;
|
||||
|
||||
|
||||
+5
-5
@@ -1,12 +1,12 @@
|
||||
using AutoFixture;
|
||||
using Govor.Core.Infrastructure.Validators;
|
||||
using Govor.Core.Models;
|
||||
using Govor.Core.Models.Users;
|
||||
using Govor.Domain.Common.Constants;
|
||||
using Govor.Domain.Models;
|
||||
using Govor.Domain.Models.Users;
|
||||
|
||||
namespace Govor.API.Tests.UnitTests.Infrastructure.Validators;
|
||||
|
||||
[TestFixture]
|
||||
public class UserValidatorTests
|
||||
public class UserConstantsTests
|
||||
{
|
||||
private IObjectValidator<User> _userValidator;
|
||||
private Fixture _fixture;
|
||||
@@ -14,7 +14,7 @@ public class UserValidatorTests
|
||||
[SetUp]
|
||||
public void SetUp()
|
||||
{
|
||||
_userValidator = new UserValidator();
|
||||
_userValidator = new UserConstants();
|
||||
|
||||
_fixture = new Fixture();
|
||||
|
||||
Reference in New Issue
Block a user