public async Task RoleStore_normalize_apis() { var role = _roleTestFactory.CreateRole(); await _roleStore.SetNormalizedRoleNameAsync(role, role.Name, default(CancellationToken)); var normalizedName = await _roleStore.GetNormalizedRoleNameAsync(role, default(CancellationToken)); role.Name.ShouldMatch(normalizedName); }
public async Task <string> GetNormalizedRoleNameAsync(ApplicationRole role, CancellationToken cancellationToken) { return(await roleStore.GetNormalizedRoleNameAsync(role, cancellationToken)); }