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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user