summaryrefslogtreecommitdiffstats
path: root/TwoStepsAuthenticator.UnitTests/UsedCodesManagerTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'TwoStepsAuthenticator.UnitTests/UsedCodesManagerTests.cs')
-rw-r--r--TwoStepsAuthenticator.UnitTests/UsedCodesManagerTests.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/TwoStepsAuthenticator.UnitTests/UsedCodesManagerTests.cs b/TwoStepsAuthenticator.UnitTests/UsedCodesManagerTests.cs
index 15ae91e..1138f54 100644
--- a/TwoStepsAuthenticator.UnitTests/UsedCodesManagerTests.cs
+++ b/TwoStepsAuthenticator.UnitTests/UsedCodesManagerTests.cs
@@ -20,4 +20,18 @@ 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;
+ }
+ }
}