diff options
author | Guillaume Lacasa <guillaume.lacasa@ucaya.com> | 2013-12-06 16:16:13 +0100 |
---|---|---|
committer | Guillaume Lacasa <guillaume.lacasa@ucaya.com> | 2013-12-06 16:16:13 +0100 |
commit | 93adb5b673c1cf6d3abdb287d349ffad11ed7665 (patch) | |
tree | 3a996fd51e7b388e3c331478823efc926da9f148 /TwoStepsAuthenticator.UnitTests/MockUsedCodesManager.cs | |
parent | 50beaba8291c1e777d5a63bb19400a260712f837 (diff) | |
download | TwoStepsAuthenticator-93adb5b673c1cf6d3abdb287d349ffad11ed7665.zip TwoStepsAuthenticator-93adb5b673c1cf6d3abdb287d349ffad11ed7665.tar.gz TwoStepsAuthenticator-93adb5b673c1cf6d3abdb287d349ffad11ed7665.tar.bz2 |
Documentation update
Code review
Diffstat (limited to 'TwoStepsAuthenticator.UnitTests/MockUsedCodesManager.cs')
-rw-r--r-- | TwoStepsAuthenticator.UnitTests/MockUsedCodesManager.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/TwoStepsAuthenticator.UnitTests/MockUsedCodesManager.cs b/TwoStepsAuthenticator.UnitTests/MockUsedCodesManager.cs new file mode 100644 index 0000000..cb0065f --- /dev/null +++ b/TwoStepsAuthenticator.UnitTests/MockUsedCodesManager.cs @@ -0,0 +1,16 @@ +namespace TwoStepsAuthenticator.UnitTests +{ + internal class MockUsedCodesManager : IUsedCodesManager { + public ulong? LastChallenge { get; private set; } + public string LastCode { get; private set; } + + public void AddCode(ulong challenge, string code) { + this.LastChallenge = challenge; + this.LastCode = code; + } + + public bool IsCodeUsed(ulong challenge, string code) { + return false; + } + } +}
\ No newline at end of file |