-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
124 changed files
with
882 additions
and
663 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
New/modules/Nezam.Modular.ESS.Identity.Domain.Shared/Employer/EmployerId.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using Bonyan.Layer.Domain.ValueObjects; | ||
|
||
namespace Nezam.Modular.ESS.Identity.Domain.Shared.Employer; | ||
|
||
public class EmployerId : BonBusinessId<EmployerId> | ||
{ | ||
} |
7 changes: 7 additions & 0 deletions
7
New/modules/Nezam.Modular.ESS.Identity.Domain.Shared/Engineer/EngineerId.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using Bonyan.Layer.Domain.ValueObjects; | ||
|
||
namespace Nezam.Modular.ESS.Identity.Domain.Shared.Engineer; | ||
|
||
public class EngineerId : BonBusinessId<EngineerId> | ||
{ | ||
} |
15 changes: 15 additions & 0 deletions
15
.../Nezam.Modular.ESS.Identity.Domain.Shared/Nezam.Modular.ESS.Identity.Domain.Shared.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<RootNamespace>Nezam.Modular.ESS.Identity.Domain.Shared</RootNamespace> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Bonyan.Layer.Domain" Version="1.1.7" /> | ||
<PackageReference Include="Bonyan.UserManagement.Domain" Version="1.1.7" /> | ||
</ItemGroup> | ||
|
||
</Project> |
10 changes: 10 additions & 0 deletions
10
New/modules/Nezam.Modular.ESS.Identity.Domain.Shared/Roles/RoleConst.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Nezam.Modular.ESS.Identity.Domain.Shared.Roles; | ||
|
||
public static class RoleConst | ||
{ | ||
public const string EmployerTitle = "Employer"; | ||
public static readonly RoleId EmployerRoleId = new RoleId("employer"); | ||
|
||
public const string EngineerTitle = "Engineer"; | ||
public static readonly RoleId EngineerRoleId = new RoleId("enginer"); | ||
} |
24 changes: 24 additions & 0 deletions
24
New/modules/Nezam.Modular.ESS.Identity.Domain.Shared/Roles/RoleId.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Bonyan.Layer.Domain.ValueObjects; | ||
|
||
namespace Nezam.Modular.ESS.Identity.Domain.Shared.Roles | ||
{ | ||
public class RoleId : BonValueObject | ||
{ | ||
public RoleId(string name) | ||
{ | ||
Name = name ?? throw new ArgumentNullException(nameof(name)); | ||
} | ||
|
||
public string Name { get; private set; } | ||
|
||
protected override IEnumerable<object?> GetEqualityComponents() | ||
{ | ||
yield return Name; | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
return Name; | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...in/User/Events/ContactInfoUpdatedEvent.cs → ...ed/User/Events/ContactInfoUpdatedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../Events/EmployerAssignedOrUpdatedEvent.cs → .../Events/EmployerAssignedOrUpdatedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...omain/User/Events/EmployerRemovedEvent.cs → ...hared/User/Events/EmployerRemovedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../Events/EngineerAssignedOrUpdatedEvent.cs → .../Events/EngineerAssignedOrUpdatedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...omain/User/Events/EngineerRemovedEvent.cs → ...hared/User/Events/EngineerRemovedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
...y.Domain/User/Events/RoleAssignedEvent.cs → ...n.Shared/User/Events/RoleAssignedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
using Bonyan.Layer.Domain.Events; | ||
using Bonyan.UserManagement.Domain.ValueObjects; | ||
using Nezam.Modular.ESS.Identity.Domain.Shared.Roles; | ||
|
||
namespace Nezam.Modular.ESS.IdEntity.Domain.User.Events; | ||
namespace Nezam.Modular.ESS.Identity.Domain.Shared.User.Events; | ||
|
||
public class RoleAssignedEvent : BonDomainEventBase | ||
{ | ||
public BonUserId UserId { get; } | ||
public string RoleName { get; } | ||
public RoleId RoleId { get; } | ||
public DateTime Timestamp { get; } | ||
|
||
public RoleAssignedEvent(BonUserId userId, string roleName) | ||
public RoleAssignedEvent(BonUserId userId, RoleId roleName) | ||
{ | ||
UserId = userId; | ||
RoleName = roleName; | ||
RoleId = roleName; | ||
Timestamp = DateTime.UtcNow; | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
...ty.Domain/User/Events/RoleRemovedEvent.cs → ...in.Shared/User/Events/RoleRemovedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
....Domain/User/Events/UserActivatedEvent.cs → ....Shared/User/Events/UserActivatedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...omain/User/Events/UserDeactivatedEvent.cs → ...hared/User/Events/UserDeactivatedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
New/modules/Nezam.Modular.ESS.Identity.Domain.Shared/User/UserConst.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Nezam.Modular.ESS.Identity.Domain.Shared.User; | ||
|
||
public static class UserConst | ||
{ | ||
public const string DefaultPassword = "Nezam@123"; | ||
} |
6 changes: 3 additions & 3 deletions
6
New/modules/Secretariat/Nezam.Modular.ESS.Secretariat.Application/Documents/DocumentDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...odules/Secretariat/Nezam.Modular.ESS.Secretariat.Application/Documents/DocumentProfile.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
...odules/Secretariat/Nezam.Modular.ESS.Secretariat.Application/Documents/DocumentService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...dules/Secretariat/Nezam.Modular.ESS.Secretariat.Application/Documents/IDocumentSerivce.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../Documents/Enumerations/DocumentStatus.cs → .../Documents/Enumerations/DocumentStatus.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...in/Documents/Enumerations/DocumentType.cs → ...ed/Documents/Enumerations/DocumentType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../Documents/Enumerations/ReferralStatus.cs → .../Documents/Enumerations/ReferralStatus.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...Documents/Events/DocumentArchivedEvent.cs → ...Documents/Events/DocumentArchivedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ts/Events/DocumentAttachmentAddedEvent.cs → ...ts/Events/DocumentAttachmentAddedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../Events/DocumentAttachmentRemovedEvent.cs → .../Events/DocumentAttachmentRemovedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../Events/DocumentAttachmentUpdatedEvent.cs → .../Events/DocumentAttachmentUpdatedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...nts/Events/DocumentContentUpdatedEvent.cs → ...nts/Events/DocumentContentUpdatedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../Documents/Events/DocumentCreatedEvent.cs → .../Documents/Events/DocumentCreatedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ts/Events/DocumentReferralCreatedEvent.cs → ...ts/Events/DocumentReferralCreatedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../Events/DocumentReferralRespondedEvent.cs → .../Events/DocumentReferralRespondedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ts/Events/DocumentRevertedToDraftEvent.cs → ...ts/Events/DocumentRevertedToDraftEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ain/Documents/Events/DocumentSentEvent.cs → ...red/Documents/Events/DocumentSentEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ments/Events/DocumentTitleUpdatedEvent.cs → ...ments/Events/DocumentTitleUpdatedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.