diff --git a/lib/Logitar.Identity.Core/ApiKeys/ApiKey.cs b/lib/Logitar.Identity.Core/ApiKeys/ApiKey.cs
index ebbcf0c..1dfb2ad 100644
--- a/lib/Logitar.Identity.Core/ApiKeys/ApiKey.cs
+++ b/lib/Logitar.Identity.Core/ApiKeys/ApiKey.cs
@@ -6,7 +6,7 @@
namespace Logitar.Identity.Core.ApiKeys;
///
-/// Represents an API key in the identity system. Similarly to an user, it can have access to processes and resources using roles.
+/// Represents an API key in the identity system. Similarly to a user, it can have access to processes and resources using roles.
/// It should be used instead of users for backend-to-backend authentication where personal and authentication information are not required.
///
public class ApiKey : AggregateRoot
diff --git a/lib/Logitar.Identity.Core/Sessions/Session.cs b/lib/Logitar.Identity.Core/Sessions/Session.cs
index 9db4128..a228ea9 100644
--- a/lib/Logitar.Identity.Core/Sessions/Session.cs
+++ b/lib/Logitar.Identity.Core/Sessions/Session.cs
@@ -6,7 +6,7 @@
namespace Logitar.Identity.Core.Sessions;
///
-/// Represents a session in the identity system. A session allows an user to perform actions in a timeframe.
+/// Represents a session in the identity system. A session allows a user to perform actions in a timeframe.
/// It can be signed-out to close the timeframe, or renewed to extend the timeframe.
///
public class Session : AggregateRoot
diff --git a/lib/Logitar.Identity.Core/Users/Events/UserAddressChanged.cs b/lib/Logitar.Identity.Core/Users/Events/UserAddressChanged.cs
index 765d5e5..e6bf87a 100644
--- a/lib/Logitar.Identity.Core/Users/Events/UserAddressChanged.cs
+++ b/lib/Logitar.Identity.Core/Users/Events/UserAddressChanged.cs
@@ -4,7 +4,7 @@
namespace Logitar.Identity.Core.Users.Events;
///
-/// The event raised when the postal address of an user is updated.
+/// The event raised when the postal address of a user is updated.
///
public record UserAddressChanged : DomainEvent, INotification
{
diff --git a/lib/Logitar.Identity.Core/Users/Events/UserAuthenticated.cs b/lib/Logitar.Identity.Core/Users/Events/UserAuthenticated.cs
index 67e3dff..8a29441 100644
--- a/lib/Logitar.Identity.Core/Users/Events/UserAuthenticated.cs
+++ b/lib/Logitar.Identity.Core/Users/Events/UserAuthenticated.cs
@@ -4,6 +4,6 @@
namespace Logitar.Identity.Core.Users.Events;
///
-/// The event raised when an user is authenticated.
+/// The event raised when a user is authenticated.
///
public record UserAuthenticated : DomainEvent, INotification;
diff --git a/lib/Logitar.Identity.Core/Users/Events/UserDeleted.cs b/lib/Logitar.Identity.Core/Users/Events/UserDeleted.cs
index 5fe0e8a..5be1da7 100644
--- a/lib/Logitar.Identity.Core/Users/Events/UserDeleted.cs
+++ b/lib/Logitar.Identity.Core/Users/Events/UserDeleted.cs
@@ -4,6 +4,6 @@
namespace Logitar.Identity.Core.Users.Events;
///
-/// The event raised when an user is deleted.
+/// The event raised when a user is deleted.
///
public record UserDeleted : DomainEvent, IDeleteEvent, INotification;
diff --git a/lib/Logitar.Identity.Core/Users/Events/UserDisabled.cs b/lib/Logitar.Identity.Core/Users/Events/UserDisabled.cs
index 0292516..c38b957 100644
--- a/lib/Logitar.Identity.Core/Users/Events/UserDisabled.cs
+++ b/lib/Logitar.Identity.Core/Users/Events/UserDisabled.cs
@@ -4,6 +4,6 @@
namespace Logitar.Identity.Core.Users.Events;
///
-/// The event raised when an user is disabled.
+/// The event raised when a user is disabled.
///
public record UserDisabled : DomainEvent, INotification;
diff --git a/lib/Logitar.Identity.Core/Users/Events/UserEmailChanged.cs b/lib/Logitar.Identity.Core/Users/Events/UserEmailChanged.cs
index 5f4172f..fe7f127 100644
--- a/lib/Logitar.Identity.Core/Users/Events/UserEmailChanged.cs
+++ b/lib/Logitar.Identity.Core/Users/Events/UserEmailChanged.cs
@@ -4,7 +4,7 @@
namespace Logitar.Identity.Core.Users.Events;
///
-/// The event raised when the email address of an user is updated.
+/// The event raised when the email address of a user is updated.
///
public record UserEmailChanged : DomainEvent, INotification
{
diff --git a/lib/Logitar.Identity.Core/Users/Events/UserEnabled.cs b/lib/Logitar.Identity.Core/Users/Events/UserEnabled.cs
index 60e53bf..d1e571c 100644
--- a/lib/Logitar.Identity.Core/Users/Events/UserEnabled.cs
+++ b/lib/Logitar.Identity.Core/Users/Events/UserEnabled.cs
@@ -4,6 +4,6 @@
namespace Logitar.Identity.Core.Users.Events;
///
-/// The event raised when an user is enabled.
+/// The event raised when a user is enabled.
///
public record UserEnabled : DomainEvent, INotification;
diff --git a/lib/Logitar.Identity.Core/Users/Events/UserIdentifierChanged.cs b/lib/Logitar.Identity.Core/Users/Events/UserIdentifierChanged.cs
index b1c6635..b883bf6 100644
--- a/lib/Logitar.Identity.Core/Users/Events/UserIdentifierChanged.cs
+++ b/lib/Logitar.Identity.Core/Users/Events/UserIdentifierChanged.cs
@@ -4,7 +4,7 @@
namespace Logitar.Identity.Core.Users.Events;
///
-/// The event raised when a custom identifier is added to an user, or updated.
+/// The event raised when a custom identifier is added to a user, or updated.
///
public record UserIdentifierChanged : DomainEvent, INotification
{
diff --git a/lib/Logitar.Identity.Core/Users/Events/UserIdentifierRemoved.cs b/lib/Logitar.Identity.Core/Users/Events/UserIdentifierRemoved.cs
index 21a9076..bf7734b 100644
--- a/lib/Logitar.Identity.Core/Users/Events/UserIdentifierRemoved.cs
+++ b/lib/Logitar.Identity.Core/Users/Events/UserIdentifierRemoved.cs
@@ -4,7 +4,7 @@
namespace Logitar.Identity.Core.Users.Events;
///
-/// The event raised when a custom identifier is removed from an user.
+/// The event raised when a custom identifier is removed from a user.
///
public record UserIdentifierRemoved : DomainEvent, INotification
{
diff --git a/lib/Logitar.Identity.Core/Users/Events/UserPasswordChanged.cs b/lib/Logitar.Identity.Core/Users/Events/UserPasswordChanged.cs
index cb50e28..3a37e4c 100644
--- a/lib/Logitar.Identity.Core/Users/Events/UserPasswordChanged.cs
+++ b/lib/Logitar.Identity.Core/Users/Events/UserPasswordChanged.cs
@@ -4,7 +4,7 @@
namespace Logitar.Identity.Core.Users.Events;
///
-/// The event raised when an user changes its password.
+/// The event raised when a user changes its password.
///
public record UserPasswordChanged : UserPasswordEvent, INotification
{
diff --git a/lib/Logitar.Identity.Core/Users/Events/UserPasswordRemoved.cs b/lib/Logitar.Identity.Core/Users/Events/UserPasswordRemoved.cs
index 3339bad..f08ae32 100644
--- a/lib/Logitar.Identity.Core/Users/Events/UserPasswordRemoved.cs
+++ b/lib/Logitar.Identity.Core/Users/Events/UserPasswordRemoved.cs
@@ -4,6 +4,6 @@
namespace Logitar.Identity.Core.Users.Events;
///
-/// The event raised when the password of an user is removed.
+/// The event raised when the password of a user is removed.
///
public record UserPasswordRemoved : DomainEvent, INotification;
diff --git a/lib/Logitar.Identity.Core/Users/Events/UserPasswordReset.cs b/lib/Logitar.Identity.Core/Users/Events/UserPasswordReset.cs
index 77bb33e..8f41e07 100644
--- a/lib/Logitar.Identity.Core/Users/Events/UserPasswordReset.cs
+++ b/lib/Logitar.Identity.Core/Users/Events/UserPasswordReset.cs
@@ -4,7 +4,7 @@
namespace Logitar.Identity.Core.Users.Events;
///
-/// The event raised when an user resets its password.
+/// The event raised when a user resets its password.
///
public record UserPasswordReset : UserPasswordEvent, INotification
{
diff --git a/lib/Logitar.Identity.Core/Users/Events/UserPasswordUpdated.cs b/lib/Logitar.Identity.Core/Users/Events/UserPasswordUpdated.cs
index ba2f171..2884e5e 100644
--- a/lib/Logitar.Identity.Core/Users/Events/UserPasswordUpdated.cs
+++ b/lib/Logitar.Identity.Core/Users/Events/UserPasswordUpdated.cs
@@ -4,7 +4,7 @@
namespace Logitar.Identity.Core.Users.Events;
///
-/// The event raised when the password of an user is modified.
+/// The event raised when the password of a user is modified.
///
public record UserPasswordUpdated : UserPasswordEvent, INotification
{
diff --git a/lib/Logitar.Identity.Core/Users/Events/UserPhoneChanged.cs b/lib/Logitar.Identity.Core/Users/Events/UserPhoneChanged.cs
index e0fb3b1..b9cab6a 100644
--- a/lib/Logitar.Identity.Core/Users/Events/UserPhoneChanged.cs
+++ b/lib/Logitar.Identity.Core/Users/Events/UserPhoneChanged.cs
@@ -4,7 +4,7 @@
namespace Logitar.Identity.Core.Users.Events;
///
-/// The event raised when the phone number of an user is updated.
+/// The event raised when the phone number of a user is updated.
///
public record UserPhoneChanged : DomainEvent, INotification
{
diff --git a/lib/Logitar.Identity.Core/Users/Events/UserRoleAdded.cs b/lib/Logitar.Identity.Core/Users/Events/UserRoleAdded.cs
index cf362b6..defbd2e 100644
--- a/lib/Logitar.Identity.Core/Users/Events/UserRoleAdded.cs
+++ b/lib/Logitar.Identity.Core/Users/Events/UserRoleAdded.cs
@@ -5,7 +5,7 @@
namespace Logitar.Identity.Core.Users.Events;
///
-/// The event raised when a role is added to an user.
+/// The event raised when a role is added to a user.
///
public record UserRoleAdded : DomainEvent, INotification
{
diff --git a/lib/Logitar.Identity.Core/Users/Events/UserRoleRemoved.cs b/lib/Logitar.Identity.Core/Users/Events/UserRoleRemoved.cs
index a754838..8d09ace 100644
--- a/lib/Logitar.Identity.Core/Users/Events/UserRoleRemoved.cs
+++ b/lib/Logitar.Identity.Core/Users/Events/UserRoleRemoved.cs
@@ -5,7 +5,7 @@
namespace Logitar.Identity.Core.Users.Events;
///
-/// The event raised when a role is removed from an user.
+/// The event raised when a role is removed from a user.
///
public record UserRoleRemoved : DomainEvent, INotification
{
diff --git a/lib/Logitar.Identity.Core/Users/Events/UserSignedIn.cs b/lib/Logitar.Identity.Core/Users/Events/UserSignedIn.cs
index d540ff5..4e64501 100644
--- a/lib/Logitar.Identity.Core/Users/Events/UserSignedIn.cs
+++ b/lib/Logitar.Identity.Core/Users/Events/UserSignedIn.cs
@@ -4,7 +4,7 @@
namespace Logitar.Identity.Core.Users.Events;
///
-/// The event raised when an user signs-in.
+/// The event raised when a user signs-in.
///
public record UserSignedIn : DomainEvent, INotification
{
diff --git a/lib/Logitar.Identity.Core/Users/Events/UserUniqueNameChanged.cs b/lib/Logitar.Identity.Core/Users/Events/UserUniqueNameChanged.cs
index d100a9f..90bd366 100644
--- a/lib/Logitar.Identity.Core/Users/Events/UserUniqueNameChanged.cs
+++ b/lib/Logitar.Identity.Core/Users/Events/UserUniqueNameChanged.cs
@@ -4,7 +4,7 @@
namespace Logitar.Identity.Core.Users.Events;
///
-/// The event raised when the unique name of an user is changed.
+/// The event raised when the unique name of a user is changed.
///
public record UserUniqueNameChanged : DomainEvent, INotification
{
diff --git a/lib/Logitar.Identity.Core/Users/FoundUsers.cs b/lib/Logitar.Identity.Core/Users/FoundUsers.cs
index fbfaf5e..7caa34d 100644
--- a/lib/Logitar.Identity.Core/Users/FoundUsers.cs
+++ b/lib/Logitar.Identity.Core/Users/FoundUsers.cs
@@ -1,7 +1,7 @@
namespace Logitar.Identity.Core.Users;
///
-/// The results of an user search.
+/// The results of a user search.
///
public record FoundUsers
{
diff --git a/lib/Logitar.Identity.Core/Users/IUserManager.cs b/lib/Logitar.Identity.Core/Users/IUserManager.cs
index 71ec167..8fc0e7a 100644
--- a/lib/Logitar.Identity.Core/Users/IUserManager.cs
+++ b/lib/Logitar.Identity.Core/Users/IUserManager.cs
@@ -9,7 +9,7 @@ namespace Logitar.Identity.Core.Users;
public interface IUserManager
{
///
- /// Tries finding an user by its unique identifier, unique name, or email address if they are unique.
+ /// Tries finding a user by its unique identifier, unique name, or email address if they are unique.
///
/// The identifier of the tenant in which to search.
/// The identifier of the user to find.
@@ -17,7 +17,7 @@ public interface IUserManager
/// The found users.
Task FindAsync(string? tenantId, string id, CancellationToken cancellationToken = default);
///
- /// Tries finding an user by its unique identifier, unique name, or email address if they are unique.
+ /// Tries finding a user by its unique identifier, unique name, or email address if they are unique.
///
/// The identifier of the tenant in which to search.
/// The identifier of the user to find.
diff --git a/lib/Logitar.Identity.Core/Users/IUserRepository.cs b/lib/Logitar.Identity.Core/Users/IUserRepository.cs
index 46b0c16..bf9dedf 100644
--- a/lib/Logitar.Identity.Core/Users/IUserRepository.cs
+++ b/lib/Logitar.Identity.Core/Users/IUserRepository.cs
@@ -9,14 +9,14 @@ namespace Logitar.Identity.Core.Users;
public interface IUserRepository
{
///
- /// Loads an user by the specified unique identifier.
+ /// Loads a user by the specified unique identifier.
///
/// The unique identifier.
/// The cancellation token.
/// The user, if found.
Task LoadAsync(UserId id, CancellationToken cancellationToken = default);
///
- /// Loads an user by the specified unique identifier.
+ /// Loads a user by the specified unique identifier.
///
/// The unique identifier.
/// The version at which to load the user.
@@ -24,7 +24,7 @@ public interface IUserRepository
/// The user, if found.
Task LoadAsync(UserId id, long? version, CancellationToken cancellationToken = default);
///
- /// Loads an user by the specified unique identifier.
+ /// Loads a user by the specified unique identifier.
///
/// The unique identifier.
/// A value indicating whether or not to load the user if it is deleted.
@@ -32,7 +32,7 @@ public interface IUserRepository
/// The user, if found.
Task LoadAsync(UserId id, bool? isDeleted, CancellationToken cancellationToken = default);
///
- /// Loads an user by the specified unique identifier.
+ /// Loads a user by the specified unique identifier.
///
/// The unique identifier.
/// The version at which to load the user.
@@ -80,7 +80,7 @@ public interface IUserRepository
Task> LoadAsync(TenantId? tenantId, CancellationToken cancellationToken = default);
///
- /// Loads an user by the specified unique name.
+ /// Loads a user by the specified unique name.
///
/// The identifier of the tenant.
/// The unique name.
@@ -96,7 +96,7 @@ public interface IUserRepository
/// The found users.
Task> LoadAsync(TenantId? tenantId, Email email, CancellationToken cancellationToken = default);
///
- /// Loads an user by the specified custom identifier.
+ /// Loads a user by the specified custom identifier.
///
/// The identifier of the tenant.
/// The key of the custom identifier.
diff --git a/lib/Logitar.Identity.Core/Users/IncorrectUserPasswordException.cs b/lib/Logitar.Identity.Core/Users/IncorrectUserPasswordException.cs
index 5e4a5c0..86e929c 100644
--- a/lib/Logitar.Identity.Core/Users/IncorrectUserPasswordException.cs
+++ b/lib/Logitar.Identity.Core/Users/IncorrectUserPasswordException.cs
@@ -1,7 +1,7 @@
namespace Logitar.Identity.Core.Users;
///
-/// The exception raised when an user password check fails.
+/// The exception raised when a user password check fails.
///
public class IncorrectUserPasswordException : InvalidCredentialsException
{
diff --git a/lib/Logitar.Identity.Core/Users/User.cs b/lib/Logitar.Identity.Core/Users/User.cs
index df3ac60..b54039f 100644
--- a/lib/Logitar.Identity.Core/Users/User.cs
+++ b/lib/Logitar.Identity.Core/Users/User.cs
@@ -7,7 +7,7 @@
namespace Logitar.Identity.Core.Users;
///
-/// Represents an user in the identity system. An user generally represents the account of a person.
+/// Represents a user in the identity system. A user generally represents the account of a person.
/// It contains personal information about that person as well as authentication information that could be used to authenticate that person.
///
public class User : AggregateRoot
diff --git a/lib/Logitar.Identity.Core/Users/UserHasNoPasswordException.cs b/lib/Logitar.Identity.Core/Users/UserHasNoPasswordException.cs
index 3eb5d8f..3b33945 100644
--- a/lib/Logitar.Identity.Core/Users/UserHasNoPasswordException.cs
+++ b/lib/Logitar.Identity.Core/Users/UserHasNoPasswordException.cs
@@ -1,7 +1,7 @@
namespace Logitar.Identity.Core.Users;
///
-/// The exception raised when handling an user without a password.
+/// The exception raised when handling a user without a password.
///
public class UserHasNoPasswordException : InvalidCredentialsException
{
diff --git a/lib/Logitar.Identity.Core/Users/UserId.cs b/lib/Logitar.Identity.Core/Users/UserId.cs
index 05ac8dd..184915c 100644
--- a/lib/Logitar.Identity.Core/Users/UserId.cs
+++ b/lib/Logitar.Identity.Core/Users/UserId.cs
@@ -3,7 +3,7 @@
namespace Logitar.Identity.Core.Users;
///
-/// Represents the identifier of an user.
+/// Represents the identifier of a user.
///
public readonly struct UserId
{
diff --git a/lib/Logitar.Identity.Core/Users/UserManager.cs b/lib/Logitar.Identity.Core/Users/UserManager.cs
index 0879574..c76ab2d 100644
--- a/lib/Logitar.Identity.Core/Users/UserManager.cs
+++ b/lib/Logitar.Identity.Core/Users/UserManager.cs
@@ -38,7 +38,7 @@ public UserManager(ISessionRepository sessionRepository, IUserRepository userRep
}
///
- /// Tries finding an user by its unique identifier, unique name, or email address if they are unique.
+ /// Tries finding a user by its unique identifier, unique name, or email address if they are unique.
///
/// The identifier of the tenant in which to search.
/// The identifier of the user to find.
@@ -49,7 +49,7 @@ public virtual async Task FindAsync(string? tenantIdValue, string id
return await FindAsync(tenantIdValue, id, userSettings: null, cancellationToken);
}
///
- /// Tries finding an user by its unique identifier, unique name, or email address if they are unique.
+ /// Tries finding a user by its unique identifier, unique name, or email address if they are unique.
///
/// The identifier of the tenant in which to search.
/// The identifier of the user to find.
diff --git a/lib/Logitar.Identity.Core/Validators/LocaleValidator.cs b/lib/Logitar.Identity.Core/Validators/LocaleValidator.cs
index 538ca10..8bf577b 100644
--- a/lib/Logitar.Identity.Core/Validators/LocaleValidator.cs
+++ b/lib/Logitar.Identity.Core/Validators/LocaleValidator.cs
@@ -26,7 +26,7 @@ public class LocaleValidator : IPropertyValidator
/// The default error message template.
public string GetDefaultMessageTemplate(string errorCode)
{
- return "'{PropertyName}' must be a valid locale code. It cannot be the invariant culture, nor an user-defined culture.";
+ return "'{PropertyName}' must be a valid locale code. It cannot be the invariant culture, nor a user-defined culture.";
}
///
diff --git a/tests/Logitar.Identity.Core.UnitTests/Users/UserManagerTests.cs b/tests/Logitar.Identity.Core.UnitTests/Users/UserManagerTests.cs
index 13810d8..2d980f0 100644
--- a/tests/Logitar.Identity.Core.UnitTests/Users/UserManagerTests.cs
+++ b/tests/Logitar.Identity.Core.UnitTests/Users/UserManagerTests.cs
@@ -31,7 +31,7 @@ public UserManagerTests()
_userManager = new(_sessionRepository.Object, _userRepository.Object, _userSettingsResolver.Object);
}
- [Fact(DisplayName = "FindAsync: it should find an user by email address.")]
+ [Fact(DisplayName = "FindAsync: it should find a user by email address.")]
public async Task FindAsync_it_should_find_an_user_by_email_address()
{
_userSettings.RequireUniqueEmail = true;
@@ -52,7 +52,7 @@ public async Task FindAsync_it_should_find_an_user_by_email_address()
_userRepository.Verify(x => x.LoadAsync(tenantId, user.Email, _cancellationToken), Times.Once);
}
- [Fact(DisplayName = "FindAsync: it should find an user by ID.")]
+ [Fact(DisplayName = "FindAsync: it should find a user by ID.")]
public async Task FindAsync_it_should_find_an_user_by_Id()
{
User user = new(new UniqueName(_userSettings.UniqueName, _faker.Person.UserName));
@@ -68,7 +68,7 @@ public async Task FindAsync_it_should_find_an_user_by_Id()
_userRepository.Verify(x => x.LoadAsync(It.IsAny(), It.IsAny(), _cancellationToken), Times.Never);
}
- [Fact(DisplayName = "FindAsync: it should find an user by unique name.")]
+ [Fact(DisplayName = "FindAsync: it should find a user by unique name.")]
public async Task FindAsync_it_should_find_an_user_by_unique_name()
{
TenantId tenantId = new("tests");
@@ -85,7 +85,7 @@ public async Task FindAsync_it_should_find_an_user_by_unique_name()
_userRepository.Verify(x => x.LoadAsync(It.IsAny(), It.IsAny(), _cancellationToken), Times.Never);
}
- [Fact(DisplayName = "FindAsync: it should not find an user by email address when many are found.")]
+ [Fact(DisplayName = "FindAsync: it should not find a user by email address when many are found.")]
public async Task FindAsync_it_should_not_find_an_user_by_email_address_when_many_are_found()
{
_userSettings.RequireUniqueEmail = true;