public void Add() { var server = new ServerModel() { Description = "", DNS = "", IdServer = 1, IPv4 = "", Project = "", Provider = "", Tags = "" }; var result = serverAppService.Add(server); Assert.IsNotNull(result); }
public ActionResult <ServerModel> Create([FromBody] ServerModel model) { api.Add(model); return(CreatedAtAction(nameof(GetItem), new { model.IdServer }, model)); }