Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
akbaramd committed Dec 12, 2024
1 parent 7ced1e5 commit 48d5038
Show file tree
Hide file tree
Showing 110 changed files with 431 additions and 1,390 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Bonyan.Layer.Domain.ValueObjects;
using Payeh.SharedKernel.Domain.ValueObjects;

namespace Nezam.Modular.ESS.Identity.Domain.Shared.Employer;

public class EmployerId : BonBusinessId<EmployerId>
public class EmployerId : BusinessId<EmployerId>
{
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Bonyan.Layer.Domain.ValueObjects;
using Payeh.SharedKernel.Domain.ValueObjects;

namespace Nezam.Modular.ESS.Identity.Domain.Shared.Engineer;

public class EngineerId : BonBusinessId<EngineerId>
public class EngineerId : BusinessId<EngineerId>
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Bonyan.Layer.Domain" Version="1.2.7" />
<ProjectReference Include="..\..\..\..\Payeh\Payeh.SharedKernel\Payeh.SharedKernel.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Bonyan.Layer.Domain.ValueObjects;
using Payeh.SharedKernel.Domain.ValueObjects;

namespace Nezam.Modular.ESS.Identity.Domain.Shared.Roles;

public class RoleId : BonBusinessId<RoleId,string>
public class RoleId : BusinessId<RoleId,string>
{

}
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using Bonyan.Layer.Domain.Events;
using Nezam.Modular.ESS.Identity.Domain.Shared.User;
using Nezam.Modular.ESS.Identity.Domain.Shared.Roles;
using Nezam.Modular.ESS.Identity.Domain.Shared.Roles;
using Payeh.SharedKernel.Domain.DomainEvents;

namespace Nezam.Modular.ESS.Identity.Domain.User.Events
namespace Nezam.Modular.ESS.Identity.Domain.Shared.User.DomainEvents
{
public class UserCreatedEvent : BonDomainEventBase
public class UserCreatedEvent : DomainEvent
{
public UserId UserId { get; }
public string UserName { get; }
Expand All @@ -20,7 +19,7 @@ public UserCreatedEvent(UserId userId, string userName, string? email, UserProfi
}
}

public class UserNameUpdatedEvent : BonDomainEventBase
public class UserNameUpdatedEvent : DomainEvent
{
public UserId UserId { get; }
public string NewUserName { get; }
Expand All @@ -32,7 +31,7 @@ public UserNameUpdatedEvent(UserId userId, string newUserName)
}
}

public class UserPasswordUpdatedEvent : BonDomainEventBase
public class UserPasswordUpdatedEvent : DomainEvent
{
public UserId UserId { get; }

Expand All @@ -42,7 +41,7 @@ public UserPasswordUpdatedEvent(UserId userId)
}
}

public class UserEmailUpdatedEvent : BonDomainEventBase
public class UserEmailUpdatedEvent : DomainEvent
{
public UserId UserId { get; }
public string? NewEmail { get; }
Expand All @@ -54,7 +53,7 @@ public UserEmailUpdatedEvent(UserId userId, string? newEmail)
}
}

public class UserProfileUpdatedEvent : BonDomainEventBase
public class UserProfileUpdatedEvent : DomainEvent
{
public UserId UserId { get; }
public UserProfileValue NewProfile { get; }
Expand All @@ -66,7 +65,7 @@ public UserProfileUpdatedEvent(UserId userId, UserProfileValue newProfile)
}
}

public class UserRoleAddedEvent : BonDomainEventBase
public class UserRoleAddedEvent : DomainEvent
{
public UserId UserId { get; }
public RoleId RoleId { get; }
Expand All @@ -80,7 +79,7 @@ public UserRoleAddedEvent(UserId userId, RoleId roleId, string roleTitle)
}
}

public class UserRoleRemovedEvent : BonDomainEventBase
public class UserRoleRemovedEvent : DomainEvent
{
public UserId UserId { get; }
public RoleId RoleId { get; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Text.RegularExpressions;
using Bonyan.Layer.Domain.ValueObjects;
using Payeh.SharedKernel.Domain.ValueObjects;

namespace Nezam.Modular.ESS.Identity.Domain.Shared.User
{
public class UserEmailValue : BonValueObject
public class UserEmailValue : ValueObject
{
public string Value { get; private set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Bonyan.Layer.Domain.ValueObjects;
using Payeh.SharedKernel.Domain.ValueObjects;

namespace Nezam.Modular.ESS.Identity.Domain.Shared.User;

public class UserId : BonBusinessId<UserId>
public class UserId : BusinessId<UserId>
{

}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Text.RegularExpressions;
using Bonyan.Layer.Domain.ValueObjects;
using Payeh.SharedKernel.Domain.ValueObjects;

namespace Nezam.Modular.ESS.Identity.Domain.Shared.User;

public class UserNameValue : BonValueObject
public class UserNameValue : ValueObject
{
private string _value;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Text.RegularExpressions;
using Bonyan.Layer.Domain.ValueObjects;
using Payeh.SharedKernel.Domain.ValueObjects;

namespace Nezam.Modular.ESS.Identity.Domain.Shared.User
{
public class UserPasswordValue : BonValueObject
public class UserPasswordValue : ValueObject
{
public string Value { get; private set; }
protected UserPasswordValue() { }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Bonyan.Layer.Domain.ValueObjects;
using Payeh.SharedKernel.Domain.ValueObjects;

namespace Nezam.Modular.ESS.Identity.Domain.Shared.User
{
public class UserProfileValue : BonValueObject
public class UserProfileValue : ValueObject
{
protected UserProfileValue() { }
public string Avatar { get; private set; }
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 48d5038

Please sign in to comment.