diff --git a/src/Core/Auth/Repositories/IAuthRequestRepository.cs b/src/Core/Auth/Repositories/IAuthRequestRepository.cs index ff375ee7b0..7a66ad6e34 100644 --- a/src/Core/Auth/Repositories/IAuthRequestRepository.cs +++ b/src/Core/Auth/Repositories/IAuthRequestRepository.cs @@ -14,7 +14,7 @@ public interface IAuthRequestRepository : IRepository /// device. It will be the most current request for the device. /// /// UserId of the owner of the AuthRequests - /// a collection Auth request details or null + /// a collection Auth request details or empty Task> GetManyPendingAuthRequestByUserId(Guid userId); Task> GetManyPendingByOrganizationIdAsync(Guid organizationId); Task> GetManyAdminApprovalRequestsByManyIdsAsync(Guid organizationId, IEnumerable ids); diff --git a/test/Infrastructure.IntegrationTest/Auth/Repositories/AuthRequestRepositoryTests.cs b/test/Infrastructure.IntegrationTest/Auth/Repositories/AuthRequestRepositoryTests.cs index dc0dbbac49..56f01748fb 100644 --- a/test/Infrastructure.IntegrationTest/Auth/Repositories/AuthRequestRepositoryTests.cs +++ b/test/Infrastructure.IntegrationTest/Auth/Repositories/AuthRequestRepositoryTests.cs @@ -184,7 +184,7 @@ public class AuthRequestRepositoryTests /// Test to determine that when no valid authRequest exists in the database the return value is null. /// [DatabaseTheory, DatabaseData] - public async Task GetManyPendingAuthRequestByUserId_AuthRequstsInvalid_ReturnsEmptyEnumerable_Success( + public async Task GetManyPendingAuthRequestByUserId_AuthRequestsInvalid_ReturnsEmptyEnumerable_Success( IAuthRequestRepository authRequestRepository, IUserRepository userRepository) { @@ -227,7 +227,7 @@ public class AuthRequestRepositoryTests Assert.NotNull(result); Assert.Empty(result); - // Verify that there are authrequest associated with the user. + // Verify that there are authRequests associated with the user. Assert.NotEmpty(await authRequestRepository.GetManyByUserIdAsync(user.Id)); await CleanupTestAsync(authRequests, authRequestRepository); @@ -269,7 +269,7 @@ public class AuthRequestRepositoryTests var result = await authRequestRepository.GetManyPendingAuthRequestByUserId(user.Id); Assert.NotNull(result); - // since we group by device there should only be a sinlge return since the device Id is the same + // since we group by device there should only be a single return since the device Id is the same Assert.Single(result); var resultAuthRequest = result.First(); Assert.Equal(oneMinuteOldAuthRequest.Id, resultAuthRequest.Id);