public async void Test_GivenAUser_WhenAdminConfirmSignUp_ThenResponseIsNotAltered() { userStoreMock.Setup(mock => mock.AdminConfirmSignUpAsync(It.IsAny <CognitoUser>(), It.IsAny <CancellationToken>())).Returns(Task.FromResult(IdentityResult.Success)).Verifiable(); var output = await userManager.AdminConfirmSignUpAsync(GetCognitoUser()).ConfigureAwait(false); Assert.Equal(IdentityResult.Success, output); userStoreMock.Verify(); }