Skip to content

Commit

Permalink
Merge pull request #168 from bcgov/yj
Browse files Browse the repository at this point in the history
chore: fix typo
  • Loading branch information
ychung-mot authored Apr 17, 2024
2 parents 19f5cbd + 081e08a commit 7f3808d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/StrDss.Service/UserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public async Task<Dictionary<string, List<string>>> ApproveAccessRequest(AccessR
//only IDIR account can have BCGov org type
if (user.IdentityProviderNm != StrDssIdProviders.Idir && org.OrganizationType == OrganizationTypes.BCGov)
{
errors.AddItem("representedByOrganizationId", $"Not IDIR account cannot be associated with {OrganizationTypes.BCGov} type organization");
errors.AddItem("representedByOrganizationId", $"Non IDIR account cannot be associated with {OrganizationTypes.BCGov} type organization");
}

if (errors.Count > 0)
Expand Down
2 changes: 1 addition & 1 deletion server/StrDss.Test/UserServiceShould.cs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public async Task ApproveAccessRequest_NonIdirWithBcGovOrgType_ReturnsError(
// Assert
Assert.Single(errors);
Assert.True(errors.ContainsKey("representedByOrganizationId"));
Assert.Equal($"Not IDIR account cannot be associated with {OrganizationTypes.BCGov} type organization", errors["representedByOrganizationId"].First());
Assert.Equal($"Non IDIR account cannot be associated with {OrganizationTypes.BCGov} type organization", errors["representedByOrganizationId"].First());
}


Expand Down

0 comments on commit 7f3808d

Please sign in to comment.