4 implementations of AddToRoleAsync
Microsoft.AspNetCore.Identity.InMemory.Test (1)
Microsoft.AspNetCore.Identity.Test (2)
Microsoft.Extensions.Identity.Stores (1)
11 references to AddToRoleAsync
Microsoft.AspNetCore.Identity.Test (9)
UserManagerTest.cs (9)
342store.Setup(s => s.AddToRoleAsync(user, normalizer.NormalizeName("A"), CancellationToken.None))
345store.Setup(s => s.AddToRoleAsync(user, normalizer.NormalizeName("B"), CancellationToken.None))
348store.Setup(s => s.AddToRoleAsync(user, normalizer.NormalizeName("C"), CancellationToken.None))
370store.Verify(s => s.AddToRoleAsync(user, normalizer.NormalizeName("C"), CancellationToken.None), Times.Once());
380store.Setup(s => s.AddToRoleAsync(user, "#A", CancellationToken.None))
383store.Setup(s => s.AddToRoleAsync(user, "#B", CancellationToken.None))
386store.Setup(s => s.AddToRoleAsync(user, "#C", CancellationToken.None))
409store.Verify(s => s.AddToRoleAsync(user, "#C", CancellationToken.None), Times.Once());
420store.Setup(s => s.AddToRoleAsync(user, normalizer.NormalizeName("A"), CancellationToken.None))
Microsoft.Extensions.Identity.Core (2)