Skip to content

Commit 7a5d556

Browse files
committed
Fix unit test now that CognitoUserPool uses virtual methods
1 parent 214fef5 commit 7a5d556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/Amazon.AspNetCore.Identity.Cognito.Tests/CognitoUserStore.IUserCognitoStoreTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public partial class CognitoUserStoreTests
3737
public CognitoUserStoreTests()
3838
{
3939
_cognitoClientMock = new Mock<IAmazonCognitoIdentityProvider>();
40-
_cognitoPoolMock = new Mock<CognitoUserPool>("region_poolName", "clientID", _cognitoClientMock.Object, null);
40+
_cognitoPoolMock = new Mock<CognitoUserPool>("region_poolName", "clientID", _cognitoClientMock.Object, null) { CallBase = true };
4141
_errorsMock = new Mock<CognitoIdentityErrorDescriber>();
4242
_userMock = new Mock<CognitoUser>("userID", "clientID", _cognitoPoolMock.Object, _cognitoClientMock.Object, null, null, null, null);
4343
_store = new CognitoUserStore<CognitoUser>(_cognitoClientMock.Object, _cognitoPoolMock.Object, _errorsMock.Object);

0 commit comments

Comments
 (0)