public void CanAContentTagsBeUpdated() { var maxid = _testRepo.FindAll().Min(m => m.contenttagid); ContentTags a = new ContentTags() { contenttagid = maxid, url = $"Some image from test{maxid}", contentid = 3, description = "new-post-from-test", tags = "some awesome tesx", }; _testRepo.Update(a); var updatedContentTags = _testRepo.FindByID(maxid); Assert.AreEqual(a.url, updatedContentTags.url); }
public IActionResult GetContentTags(int id) { return(Ok(ContentTagsRepo.FindByID(id))); }