15 references to IdentityUser
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (15)
UserStoreTest.cs (13)
128await Assert.ThrowsAsync<ArgumentNullException>("login", async () => await store.AddLoginAsync(new IdentityUser("fake"), null));
130async () => await store.AddClaimsAsync(new IdentityUser("fake"), null));
132async () => await store.RemoveClaimsAsync(new IdentityUser("fake"), null));
154await Assert.ThrowsAsync<ArgumentNullException>("normalizedRoleName", async () => await store.AddToRoleAsync(new IdentityUser("fake"), null));
155await Assert.ThrowsAsync<ArgumentNullException>("normalizedRoleName", async () => await store.RemoveFromRoleAsync(new IdentityUser("fake"), null));
156await Assert.ThrowsAsync<ArgumentNullException>("normalizedRoleName", async () => await store.IsInRoleAsync(new IdentityUser("fake"), null));
157await Assert.ThrowsAsync<ArgumentException>("normalizedRoleName", async () => await store.AddToRoleAsync(new IdentityUser("fake"), ""));
158await Assert.ThrowsAsync<ArgumentException>("normalizedRoleName", async () => await store.RemoveFromRoleAsync(new IdentityUser("fake"), ""));
159await Assert.ThrowsAsync<ArgumentException>("normalizedRoleName", async () => await store.IsInRoleAsync(new IdentityUser("fake"), ""));
176var userA = new IdentityUser(Guid.NewGuid().ToString());
178var userB = new IdentityUser(Guid.NewGuid().ToString());
188var userA = new IdentityUser(Guid.NewGuid().ToString());
191var userB = new IdentityUser(Guid.NewGuid().ToString());