summaryrefslogtreecommitdiffstats
path: root/TwoStepsAuthenticator.UnitTests/MockUsedCodesManager.cs
blob: 3ed8ba8654fe5c39893152e43013e6d656258652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
namespace TwoStepsAuthenticator.UnitTests
{
    internal class MockUsedCodesManager : IUsedCodesManager {
        public long? LastChallenge { get; private set; }
        public string LastCode { get; private set; }

        public void AddCode(long challenge, string code, object user) {
            this.LastChallenge = challenge;
            this.LastCode = code;
        }

        public bool IsCodeUsed(long challenge, string code, object user) {
            return false;
        }
    }
}