Exemple #1
0
        public async Task RoleStore_rolename_apis()
        {
            var role = _roleTestFactory.CreateRole();
            await _roleStore.SetRoleNameAsync(role, "dog", default(CancellationToken));

            var normalizedName = await _roleStore.GetRoleNameAsync(role, default(CancellationToken));

            normalizedName.ShouldMatch("dog");
        }
Exemple #2
0
 public async Task SetRoleNameAsync(ApplicationRole role, string roleName, CancellationToken cancellationToken)
 {
     await roleStore.SetRoleNameAsync(role, roleName, cancellationToken);
 }