public ActionResult <string> GetById(string ApiToken, int id) { if (Helper.ValidateApiToken(ApiToken)) { return(JsonConvert.SerializeObject(UserBLO.GetById(id))); } else { return(JsonConvert.SerializeObject("Token inválido")); } }
public void ShoudlNotGetById(int id) { var result = UserBLO.GetById(id); Assert.AreEqual(null, result); }