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"); }
public async Task SetRoleNameAsync(ApplicationRole role, string roleName, CancellationToken cancellationToken) { await roleStore.SetRoleNameAsync(role, roleName, cancellationToken); }