Skip to content

Commit

Permalink
Rename UpdateManyAsync() to UpdateAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
addisonbeck committed May 13, 2024
1 parent 603cc6d commit 188af1f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ namespace Bit.Core.AdminConsole.OrganizationAuth.Interfaces;
public interface IUpdateOrganizationAuthRequestCommand
{
Task UpdateAsync(Guid requestId, Guid userId, bool requestApproved, string encryptedUserKey);
Task UpdateManyAsync(Guid organizationId, IEnumerable<OrganizationAuthRequestUpdateCommandModel> authRequestUpdates);
Task UpdateAsync(Guid organizationId, IEnumerable<OrganizationAuthRequestUpdateCommandModel> authRequestUpdates);
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public async Task UpdateAsync(Guid requestId, Guid userId, bool requestApproved,
}
}

public async Task UpdateManyAsync(Guid organizationId, IEnumerable<OrganizationAuthRequestUpdateCommandModel> authRequestUpdates)
public async Task UpdateAsync(Guid organizationId, IEnumerable<OrganizationAuthRequestUpdateCommandModel> authRequestUpdates)
{
var databaseRecords = await FetchManyOrganizationAuthRequestsFromTheDatabase(organizationId, authRequestUpdates.Select(aru => aru.Id));
var processedAuthRequests = ProcessManyAuthRequests(databaseRecords, authRequestUpdates, organizationId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ Guid organizationId
return existingAuthRequest;
}).ToList();
sutProvider.Sut.FetchManyOrganizationAuthRequestsFromTheDatabase(organizationId, authRequestUpdates.Select(x => x.Id)).Returns(updatedAuthRequests);
await sutProvider.Sut.UpdateManyAsync(organizationId, authRequestUpdates);
await sutProvider.Sut.UpdateAsync(organizationId, authRequestUpdates);
}

private T UnrespondToAuthRequest<T>(T authRequestToUnrespondTo) where T : AuthRequest
Expand Down

0 comments on commit 188af1f

Please sign in to comment.