public Remove ( |
||
content | The content - requires host, path, and name property. If name is set to "*" then removes all for host and path. | |
return | void |
public void TestDelete() { // Arrange var repo = new SqlContentRepository(new SqlDataRepository(), "DefaultDatabase", "CmsContent", string.Empty); var model = new ContentModel() { Host = "localhost", Path = "/test/test/article" }; // Act repo.Remove(model); var result = repo.Exists(model); // Assert Assert.IsFalse(result); }