public void Update_Should_Throw_DaOAuthServiceException_When_User_Is_Not_Admin() { _service.Update(new UpdateRessourceServerDto() { Id = _existingRessourceServer.Id, Description = "new description", IsValid = true, Name = "new name", UserName = _normalUser.UserName }); }
public IActionResult Put(UpdateRessourceServerDto toUpdate) { toUpdate.UserName = User.Identity.Name; _service.Update(toUpdate); return(Ok()); }