summaryrefslogtreecommitdiffstats
path: root/TwoStepsAuthenticator.UnitTests/UsedCodesManagerTests.cs
diff options
context:
space:
mode:
authorChristoph Enzmann <christoph.enzmann@confer.ch>2013-12-06 15:20:07 +0100
committerChristoph Enzmann <christoph.enzmann@confer.ch>2013-12-06 15:20:07 +0100
commit41cb13ee263104981850a73d4abf4a583df31941 (patch)
tree46b14ab6b93d813e9f40aae760f4b3902e380800 /TwoStepsAuthenticator.UnitTests/UsedCodesManagerTests.cs
parentff91ec6adbf7f1c816b645844e7f83f4be74e548 (diff)
downloadTwoStepsAuthenticator-41cb13ee263104981850a73d4abf4a583df31941.zip
TwoStepsAuthenticator-41cb13ee263104981850a73d4abf4a583df31941.tar.gz
TwoStepsAuthenticator-41cb13ee263104981850a73d4abf4a583df31941.tar.bz2
Use one global default UsedCodesManager
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;
+ }
+ }
}