summaryrefslogtreecommitdiffstats
path: root/TwoStepsAuthenticator.UnitTests/MockUsedCodesManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'TwoStepsAuthenticator.UnitTests/MockUsedCodesManager.cs')
-rw-r--r--TwoStepsAuthenticator.UnitTests/MockUsedCodesManager.cs16
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