public async Task GetAsync() { //Arrange var moderator = await GetRoleAsync("moderator"); //Act var result = await _roleAppService.GetAsync(moderator.Id); //Assert result.Id.ShouldBe(moderator.Id); }
/// <summary> /// 通过Id获取角色 /// </summary> /// <param name="id">Id标识</param> /// <returns>Task<IdentityRoleDto>.</returns> public virtual Task <IdentityRoleDto> Get(string id) { return(_appService.GetAsync(id.ToGuid())); }
public virtual Task <IdentityRoleDto> GetAsync(Guid id) { return(_roleAppService.GetAsync(id)); }