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 void Put(int id, [FromBody] ContentTags data) { ContentTagsRepo.Update(data); _log.LogInformation($"The ContentTags that was updated {JsonConvert.SerializeObject(data)}"); }