@@ -370,7 +370,7 @@ private static ChangePasswordFixture ForPasswordVerificationResult(
370
370
[ Fact ]
371
371
public async Task PasswordResetTokenIsValidDeletesExpiredTokens ( )
372
372
{
373
- var fixture = PasswordResetTokenIsValidFixture . ForValidToken ( ) ;
373
+ var fixture = PasswordResetTokenFixture . ForValidToken ( ) ;
374
374
375
375
await fixture . PasswordResetTokenIsValid ( ) ;
376
376
@@ -381,7 +381,7 @@ public async Task PasswordResetTokenIsValidDeletesExpiredTokens()
381
381
[ Fact ]
382
382
public async Task PasswordResetTokenIsValidLogsIfValid ( )
383
383
{
384
- var fixture = PasswordResetTokenIsValidFixture . ForValidToken ( ) ;
384
+ var fixture = PasswordResetTokenFixture . ForValidToken ( ) ;
385
385
386
386
await fixture . PasswordResetTokenIsValid ( ) ;
387
387
@@ -393,15 +393,15 @@ public async Task PasswordResetTokenIsValidLogsIfValid()
393
393
[ Fact ]
394
394
public async Task PasswordResetTokenIsValidReturnsTrueIfValid ( )
395
395
{
396
- var fixture = PasswordResetTokenIsValidFixture . ForValidToken ( ) ;
396
+ var fixture = PasswordResetTokenFixture . ForValidToken ( ) ;
397
397
398
398
Assert . True ( await fixture . PasswordResetTokenIsValid ( ) ) ;
399
399
}
400
400
401
401
[ Fact ]
402
402
public async Task PasswordResetTokenIsValidLogsIfInvalid ( )
403
403
{
404
- var fixture = PasswordResetTokenIsValidFixture . ForInvalidToken ( ) ;
404
+ var fixture = PasswordResetTokenFixture . ForInvalidToken ( ) ;
405
405
406
406
await fixture . PasswordResetTokenIsValid ( ) ;
407
407
@@ -415,18 +415,18 @@ public async Task PasswordResetTokenIsValidLogsIfInvalid()
415
415
[ Fact ]
416
416
public async Task PasswordResetTokenIsValidReturnsFalseIfInvalid ( )
417
417
{
418
- var fixture = PasswordResetTokenIsValidFixture . ForInvalidToken ( ) ;
418
+ var fixture = PasswordResetTokenFixture . ForInvalidToken ( ) ;
419
419
420
420
await fixture . PasswordResetTokenIsValid ( ) ;
421
421
422
422
Assert . False ( await fixture . PasswordResetTokenIsValid ( ) ) ;
423
423
}
424
424
425
- private class PasswordResetTokenIsValidFixture : AuthenticationManagerFixture
425
+ private class PasswordResetTokenFixture : AuthenticationManagerFixture
426
426
{
427
427
private const string Token = "password-reset-token" ;
428
428
429
- private PasswordResetTokenIsValidFixture ( long ? userId )
429
+ private PasswordResetTokenFixture ( long ? userId )
430
430
{
431
431
this . UserId = userId ;
432
432
this . SetupGetUserIdForToken ( Token , userId ) ;
@@ -436,9 +436,9 @@ private PasswordResetTokenIsValidFixture(long? userId)
436
436
437
437
public long ? UserId { get ; }
438
438
439
- public static PasswordResetTokenIsValidFixture ForValidToken ( ) => new ( 43 ) ;
439
+ public static PasswordResetTokenFixture ForValidToken ( ) => new ( 43 ) ;
440
440
441
- public static PasswordResetTokenIsValidFixture ForInvalidToken ( ) => new ( null ) ;
441
+ public static PasswordResetTokenFixture ForInvalidToken ( ) => new ( null ) ;
442
442
443
443
public Task < bool > PasswordResetTokenIsValid ( ) =>
444
444
this . AuthenticationManager . PasswordResetTokenIsValid ( Token ) ;
0 commit comments