Пример #1
0
        public IActionResult Post(CreateRessourceServerDto infos)
        {
            infos.UserName = User.Identity.Name;
            var createdId  = _service.CreateRessourceServer(infos);
            var currentUrl = UriHelper.GetDisplayUrl(Request);

            return(Created($"{currentUrl}/{createdId}", null));
        }
Пример #2
0
 public void Create_Ressource_Server_Should_Throw_DaOAuthServiceException_Where_Name_Is_Empty()
 {
     _createDto.Name = String.Empty;
     _service.CreateRessourceServer(_createDto);
 }