79832637

Date: 2025-11-28 14:15:18
Score: 0.5
Natty:
Report link

In my case i just changed

_userManager.Setup(r => r.GetRolesAsync(newlyCreatedUser)).ReturnsAsync(x => oldRolesThatUserHad);

into

_userManager.Setup(r => r.GetRolesAsync(newlyCreatedUser)).ReturnsAsync(oldRolesThatUserHad); //omit the lambda
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Aleksa Hadzic