Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OKTA-295706 add usertypes #378

Merged
merged 7 commits into from May 18, 2020
Merged

Conversation

bryanapellanes-okta
Copy link
Contributor

@bryanapellanes-okta bryanapellanes-okta commented May 15, 2020

Issue #

OKTA-295706

Code

  • Integration test(s)
  • Implementation

updatedUserType.Description.Should().Be(updatedDescription);
updatedUserType.DisplayName.Should().Be(updatedDisplayName);

var retrievedForValidation = await testClient.UserTypes.GetUserTypeAsync(createdUserType.Id);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I suggest using more descriptive names. I would rename this to retrievedUserTypeForValidation, so we know it is a user type.

replacedUserType.DisplayName.Should().Be(replacedDisplayName);
replacedUserType.Name.Should().Be(testName);

var retrievedForValidation = await testClient.UserTypes.GetUserTypeAsync(createdUserType.Id);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: descriptive names. See above.


try
{
HashSet<string> allUserTypeIds = new HashSet<string>();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: In this method we have vars and explicitly typed vars, let's try to use the same coding rules when it's possible for consistency. In general, this SDK is using vars, so I would stick to it.

Copy link
Collaborator

@laura-rodriguez laura-rodriguez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good in general. Just a few minor things.

@bryanapellanes-okta bryanapellanes-okta merged commit b05fb87 into dev May 18, 2020
@bryanapellanes-okta bryanapellanes-okta deleted the OKTA-295706-add-usertypes branch May 18, 2020 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants