1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-07 10:55:43 -05:00

Moved to private method. Made ScimInvite inherit the single invite base model. Moved create methods to constructors. A few more CR changes included.

This commit is contained in:
jrmccannon
2025-03-05 14:55:41 -06:00
parent 085dbffed1
commit 611ad8c343
16 changed files with 114 additions and 130 deletions

View File

@ -396,9 +396,9 @@ public class OrganizationUserRepositoryTests
var orgUserCollection = new List<CreateOrganizationUser>
{
new CreateOrganizationUser
new()
{
User = new OrganizationUser
OrganizationUser = new OrganizationUser
{
Id = CoreHelpers.GenerateComb(),
OrganizationId = organization.Id,
@ -425,6 +425,7 @@ public class OrganizationUserRepositoryTests
await organizationUserRepository.CreateManyAsync(orgUserCollection);
var orgUser = await organizationUserRepository.GetDetailsByIdAsync(orgUserCollection.First().User.Id);
var orgUser = await organizationUserRepository.GetDetailsByIdAsync(orgUserCollection.First().OrganizationUser.Id);
Assert.Equal(orgUserCollection.First().OrganizationUser.Id, orgUser.Id);
}
}