-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
6 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -209,10 +209,12 @@ public void GenerateAuthInfos_InvalidCredentials_Throws(string email, string pas | |
Assert.Throws<ArgumentNullException>(expectedMessage, () => this.context.Client.GenerateAuthInfos(email, password)); | ||
} | ||
|
||
[Theory, InlineData("[email protected]", "password", "{'Email':'[email protected]','Hash':'ObELy57HULI','PasswordAesKey':'ZAM5cl5uvROiXwBSEp98sQ=='}")] | ||
public void GenerateAuthInfos_ValidCredentials_Succeeds(string email, string password, string expectedResult) | ||
[Theory] | ||
[InlineData("[email protected]", "password", null, "{'Email':'[email protected]','Hash':'ObELy57HULI','PasswordAesKey':'ZAM5cl5uvROiXwBSEp98sQ==','MFAKey':null}")] | ||
[InlineData("[email protected]", "password", "mfa", "{'Email':'[email protected]','Hash':'ObELy57HULI','PasswordAesKey':'ZAM5cl5uvROiXwBSEp98sQ==','MFAKey':'mfa'}")] | ||
public void GenerateAuthInfos_ValidCredentials_Succeeds(string email, string password, string mfa, string expectedResult) | ||
{ | ||
var authInfos = this.context.Client.GenerateAuthInfos(email, password); | ||
var authInfos = this.context.Client.GenerateAuthInfos(email, password, mfa); | ||
var result = JsonConvert.SerializeObject(authInfos, Formatting.None).Replace('\"', '\''); | ||
|
||
Assert.Equal(expectedResult, result); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters