Esempio n. 1
0
 public IActionResult Delete(int id)
 {
     _service.Delete(new DeleteRessourceServerDto()
     {
         Id       = id,
         UserName = User.Identity.Name
     });
     return(Ok());
 }
Esempio n. 2
0
 public void Delete_Should_Throw_DaOAuthServiceException_When_Id_Dont_Exists()
 {
     _service.Delete(new DeleteRessourceServerDto()
     {
         Id       = 9521,
         UserName = _adminUser.UserName
     });
 }