Beispiel #1
0
        public async Task RoleStore_roleid_apis()
        {
            var role = _roleTestFactory.CreateRole();
            var id   = await _roleStore.GetRoleIdAsync(role, default(CancellationToken));

            id.ShouldMatch(role.Id);
        }
Beispiel #2
0
 public async Task <string> GetRoleIdAsync(ApplicationRole role, CancellationToken cancellationToken)
 {
     return(await roleStore.GetRoleIdAsync(role, cancellationToken));
 }