public void GivenStoreWithItem()
 {
     _store = new InMemoryFrankenstore();
     _store.StoreAsync(new[]
     {
         ObjectMother.Frankenwiki.Frankenpages.Default
             .WithCategory("random", "Random")
             .Build()
     });
 }
Exemplo n.º 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(),
     });
 }
Exemplo n.º 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(),
     });
 }
Exemplo n.º 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()
     });
 }
Exemplo n.º 9
0
 async void WhenThePagesAreIndexed()
 {
     var generator = new InMemoryFrankenstore();
     await generator.StoreAsync(new[] { _primaryPage, _secondaryPage });
 }
Exemplo n.º 10
0
 async void WhenThePagesAreIndexed()
 {
     var generator = new InMemoryFrankenstore();
     await generator.StoreAsync(new[] { _page, _page2, _page3, _page4 });
 }
 public void AndGivenAnInMemoryStore()
 {
     _store = new InMemoryFrankenstore();
 }
 public void AndGivenAnInMemoryStore()
 {
     _store = new InMemoryFrankenstore();
 }
Exemplo n.º 13
0
 async void WhenThePagesAreIndexed()
 {
     var generator = new InMemoryFrankenstore();
     await generator.StoreAsync(new[] { _primaryPage, _secondaryPage });
 }
 public void GivenStoreWithNoPages()
 {
     _store = new InMemoryFrankenstore();
 }
Exemplo n.º 15
0
 public void GivenEmptyStore()
 {
     _store = new InMemoryFrankenstore();
 }
Exemplo n.º 16
0
 public void GivenStoreWithNoPages()
 {
     _store = new InMemoryFrankenstore();
 }
Exemplo n.º 17
0
 async void WhenThePagesAreIndexed()
 {
     var generator = new InMemoryFrankenstore();
     await generator.StoreAsync(new[] { _page, _page2, _page3, _page4 });
 }