public void CanANewContentTagsBeCreated() { ContentTags a = new ContentTags() { contenttagid = 99, url = "Some image from test", contentid = 3, description = "new-post-from-test", tags = "some awesome tesx", }; _testRepo.Add(a); var insertedContentTags = _testRepo.FindAll().Where(w => w.url == a.url).First(); _testid = insertedContentTags.contenttagid; Assert.AreEqual(a.url, insertedContentTags.url); }
public IActionResult GetContentTags() { _log.LogInformation(ContentTagsRepo.getConnectionString()); return(Ok(ContentTagsRepo.FindAll())); }