Beispiel #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");
        }
Beispiel #2
0
 public async Task <string> GetRoleNameAsync(ApplicationRole role, CancellationToken cancellationToken)
 {
     return(await roleStore.GetRoleNameAsync(role, cancellationToken));
 }