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