diff options
author | Guillaume Lacasa <guillaumelacasa@hotmail.com> | 2014-03-17 18:01:40 +0100 |
---|---|---|
committer | Guillaume Lacasa <guillaumelacasa@hotmail.com> | 2014-03-17 18:01:40 +0100 |
commit | 6f71d431c921e8b9aab0bbe89b3293671b81563e (patch) | |
tree | 108abd109f4dfe6744557711494ede9c81124867 /TwoStepsAuthenticator.UnitTests/UsedCodesManagerTests.cs | |
parent | 0d73b105daca5ccca439d0e04692d773c33d274a (diff) | |
download | TwoStepsAuthenticator-1.0.zip TwoStepsAuthenticator-1.0.tar.gz TwoStepsAuthenticator-1.0.tar.bz2 |
The UsedCodeManager needs to have an user object, in order to avoid a user to block a temp code for every other usersv1.0
Diffstat (limited to 'TwoStepsAuthenticator.UnitTests/UsedCodesManagerTests.cs')
-rw-r--r-- | TwoStepsAuthenticator.UnitTests/UsedCodesManagerTests.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/TwoStepsAuthenticator.UnitTests/UsedCodesManagerTests.cs b/TwoStepsAuthenticator.UnitTests/UsedCodesManagerTests.cs index d72474c..ffe40ae 100644 --- a/TwoStepsAuthenticator.UnitTests/UsedCodesManagerTests.cs +++ b/TwoStepsAuthenticator.UnitTests/UsedCodesManagerTests.cs @@ -14,9 +14,9 @@ namespace TwoStepsAuthenticator.UnitTests { public void Can_add_codes() { var manager = new UsedCodesManager(); - Assert.IsFalse(manager.IsCodeUsed(42L, "def")); - manager.AddCode(42L, "def"); - Assert.IsTrue(manager.IsCodeUsed(42L, "def")); + Assert.IsFalse(manager.IsCodeUsed(42L, "def","u")); + manager.AddCode(42L, "def", "u"); + Assert.IsTrue(manager.IsCodeUsed(42L, "def", "u")); } } |