public void PutIngredient_StatusCodeSuccesfullPut() //has to .name each time. { item.name = "NewNameInPut"; //Update each time IHttpActionResult actionresult = controller.PutIngredient(item, userid); Assert.IsInstanceOf <StatusCodeResult>(actionresult); }