예제 #1
0
 public void Exists()
 {
     WriteStubElements(new[] { "test.file", "test.file.some-other-data-here-willbe" });
     Assert.IsTrue(Persister.Exists(new FileDescriptor {
         Path = "test.file.some-other-data-here-willbe"
     }));
     Assert.IsFalse(Persister.Exists(new FileDescriptor {
         Path = "NOTEXISTStest.file.some-other-data-here-willbe"
     }));
 }
예제 #2
0
 /// <summary>
 /// Проверяет наличие страниц с указанными кодами в хранилище
 /// </summary>
 /// <param name="codes"></param>
 /// <returns></returns>
 public IEnumerable <WikiPage> Exists(params string[] codes)
 {
     CheckPersister();
     return(Persister.Exists(codes));
 }