Skip to content

Commit 51deb61

Browse files
committed
Fixed unit tests relating to #750 with sample users.
1 parent 03a794a commit 51deb61

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Exceptionless.Core/Utility/SampleDataService.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ public async Task CreateDataAsync() {
6262
FullName = "Test User",
6363
EmailAddress = TEST_USER_EMAIL
6464
};
65+
66+
user.CreateVerifyEmailAddressToken();
6567
user.Roles.Add(AuthorizationRoles.Client);
6668
user.Roles.Add(AuthorizationRoles.User);
6769
user.Roles.Add(AuthorizationRoles.GlobalAdmin);
@@ -85,6 +87,8 @@ public async Task CreateOrganizationAdminUserAsync() {
8587
FullName = "Test Org User",
8688
EmailAddress = TEST_ORG_USER_EMAIL
8789
};
90+
91+
user.CreateVerifyEmailAddressToken();
8892
user.Roles.Add(AuthorizationRoles.Client);
8993
user.Roles.Add(AuthorizationRoles.User);
9094

@@ -147,6 +151,8 @@ public async Task CreateFreeOrganizationAndProjectAsync() {
147151
FullName = "Free User",
148152
EmailAddress = FREE_USER_EMAIL
149153
};
154+
155+
user.CreateVerifyEmailAddressToken();
150156
user.Roles.Add(AuthorizationRoles.Client);
151157
user.Roles.Add(AuthorizationRoles.User);
152158

0 commit comments

Comments
 (0)