-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
area-identityIncludes: Identity and providersIncludes: Identity and providershelp wantedUp for grabs. We would accept a PR to help resolve this issueUp for grabs. We would accept a PR to help resolve this issue
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
I am trying to implement integration tests in my application that uses the Identity package. I want to test that the user lockout feature is correctly configured in my application and am using the TimeProvider and FakeTimeProvider which where introduced with .NET 8 to ensure the user is not locked anymore after the desired amount of time.
Unfortunately, the UserManager class still uses the static DateTimeOffset instead of the new TimeProvider and therefore does not react to time changes in my tests.
Describe the solution you'd like
Replace the DateTimeOffset class with the TimeProvider to determine the current time in the Identity package
Additional context
No response
Metadata
Metadata
Assignees
Labels
area-identityIncludes: Identity and providersIncludes: Identity and providershelp wantedUp for grabs. We would accept a PR to help resolve this issueUp for grabs. We would accept a PR to help resolve this issue