public async Task DeleteAsync()
        {
            //Arrange

            var moderator = await GetRoleAsync("moderator");

            //Act

            await _roleAppService.DeleteAsync(moderator.Id);

            //Assert

            (await FindRoleAsync("moderator")).ShouldBeNull();
        }
Exemplo n.º 2
0
 /// <summary>
 /// 删除角色
 /// </summary>
 /// <param name="id">Id标识</param>
 /// <returns>Task.</returns>
 public virtual Task Delete(string id)
 {
     return(_appService.DeleteAsync(id.ToGuid()));
 }
Exemplo n.º 3
0
 public virtual Task DeleteAsync(Guid id)
 {
     return(_roleAppService.DeleteAsync(id));
 }
Exemplo n.º 4
0
 public async Task DeleteAsync(Guid id)
 {
     await _identityRoleAppService.DeleteAsync(id);
 }