public void GivenStoreWithItem()
 {
     _store = new InMemoryFrankenstore();
     _store.StoreAsync(new[]
     {
         ObjectMother.Frankenwiki.Frankenpages.Default
             .WithCategory("random", "Random")
             .Build()
     });
 }
Exemple #2
0
 public void GivenStoreWithItem()
 {
     _store = new InMemoryFrankenstore();
     _store.StoreAsync(new[]
     {
         ObjectMother.Frankenwiki.Frankenpages.Default
         .WithCategory("random", "Random")
         .Build()
     });
 }
 public void GivenStoreWithItem()
 {
     _store = new InMemoryFrankenstore();
     _store.StoreAsync(new[]
     {
         ObjectMother.Frankenwiki.Frankenpages.Default
             .WithSlug("page-matching-category")
             .WithTitle("Page Matching Category")
             .WithCategory("random", "Random")
             .Build()
     });
 }
 public void GivenStoreWithItem()
 {
     _store = new InMemoryFrankenstore();
     _store.StoreAsync(new[]
     {
         ObjectMother.Frankenwiki.Frankenpages.Default
         .WithSlug("page-matching-category")
         .WithTitle("Page Matching Category")
         .WithCategory("random", "Random")
         .Build()
     });
 }
 public void GivenStoreWithNoPages()
 {
     _store = new InMemoryFrankenstore();
     _store.StoreAsync(new[]
     {
         ObjectMother.Frankenwiki.Frankenpages.Default
             .WithCategory("one", "One")
             .Build(),
         ObjectMother.Frankenwiki.Frankenpages.Default
             .WithCategory("two", "Two")
             .Build(),
     });
 }
Exemple #6
0
 public void GivenStoreWithNoPages()
 {
     _store = new InMemoryFrankenstore();
     _store.StoreAsync(new[]
     {
         ObjectMother.Frankenwiki.Frankenpages.Default
         .WithCategory("one", "One")
         .Build(),
         ObjectMother.Frankenwiki.Frankenpages.Default
         .WithCategory("two", "Two")
         .Build(),
     });
 }
Exemple #7
0
 public void GivenStoreWithItems()
 {
     _store = new InMemoryFrankenstore();
     _store.StoreAsync(new[]
     {
         ObjectMother.Frankenwiki.Frankenpages.Default
         .WithSlug("category-random")
         .WithTitle("Random category disambiguation (this is ignored)")
         .WithHtml("<p>Text about the random category</p>")
         .Build(),
         ObjectMother.Frankenwiki.Frankenpages.Default
         .WithSlug("page-matching-category")
         .WithTitle("Page Matching Category")
         .WithCategory("random", "Random")
         .Build()
     });
 }
 public void GivenStoreWithItems()
 {
     _store = new InMemoryFrankenstore();
     _store.StoreAsync(new[]
     {
         ObjectMother.Frankenwiki.Frankenpages.Default
             .WithSlug("category-random")
             .WithTitle("Random category disambiguation (this is ignored)")
             .WithHtml("<p>Text about the random category</p>")
             .Build(),
         ObjectMother.Frankenwiki.Frankenpages.Default
             .WithSlug("page-matching-category")
             .WithTitle("Page Matching Category")
             .WithCategory("random", "Random")
             .Build()
     });
 }
 async void WhenThePagesAreIndexed()
 {
     var generator = new InMemoryFrankenstore();
     await generator.StoreAsync(new[] { _page, _page2, _page3, _page4 });
 }
Exemple #10
0
 async void WhenThePagesAreIndexed()
 {
     var generator = new InMemoryFrankenstore();
     await generator.StoreAsync(new[] { _page, _page2, _page3, _page4 });
 }
 async void WhenThePagesAreIndexed()
 {
     var generator = new InMemoryFrankenstore();
     await generator.StoreAsync(new[] { _primaryPage, _secondaryPage });
 }
Exemple #12
0
 async void WhenThePagesAreIndexed()
 {
     var generator = new InMemoryFrankenstore();
     await generator.StoreAsync(new[] { _primaryPage, _secondaryPage });
 }