public void TestUpdate() { Resource resource = new Resource(); resource.Description = "Test"; resource.Link = "some link"; resource.Title = "Test Resource"; resource.ProviderName = "Unit Test"; Assert.True(ResourceDBConnector.Update(dataSource, resource)); }
public IActionResult Edit(Resource resource, int id) { ResourceDBConnector.Update(Constants.DATA_SOURCE, resource); return(Redirect("/Resources")); }