-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing account equality
- Loading branch information
Showing
2 changed files
with
11 additions
and
3 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
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 |
---|---|---|
|
@@ -17,6 +17,9 @@ public static IEnumerable<TestCaseData> MigrationTestCase() | |
Account newAccount = CreateTestAccount(NEW_URL, new(OLD_URL), null); | ||
Account otherAccount = CreateTestAccount(OTHER_URL, null, null); | ||
|
||
// new account user must match old account user id | ||
newAccount.userInfo.id = oldAccount.userInfo.id; | ||
|
||
List<Account> givenAccounts = new() { oldAccount, newAccount, otherAccount }; | ||
|
||
yield return new TestCaseData(givenAccounts, NEW_URL, new[] { newAccount }) | ||
|
@@ -69,7 +72,7 @@ private static Account CreateTestAccount(string url, Uri movedFrom, Uri movedTo) | |
}, | ||
userInfo = new UserInfo | ||
{ | ||
id = new Guid().ToString(), | ||
id = Guid.NewGuid().ToString(), | ||
email = "[email protected]", | ||
name = "user" | ||
} | ||
|