public void GetSingleArticle()
 {
     foreach (Article article in _articles)
     {
         Assert.AreEqual(article.Metadata, Store.GetArticleAsync(article.Slug).GetAwaiter().GetResult().Metadata);
     }
 }
示例#2
0
 public Task <Article> GetArticleAsync(string slug)
 {
     ++GetArticleSyncCount;
     return(InMemoryArticleStore.GetArticleAsync(slug));
 }