public static void Setup(TestContext context) { s_repo = new Data.InMemorySiteContentRepository(); s_repo.CreateContentAsync( new SimpleContent { Id = "page1", Title = "Page 1", Content = "<b>page1</b>" } ).Wait(); s_mapRepo = new Data.InMemorySiteMapRepository(); }
public static void Setup(TestContext context) { s_repo = new Data.InMemorySiteContentRepository(); s_repo.CreateContentAsync( new ListLandingContent { Id = "NewsList", Title = "News", Content = "<b>News</b>" } ).Wait(); s_mapRepo = new Data.InMemorySiteMapRepository(); }
public static void Setup(TestContext context) { _repo = new Data.InMemorySiteContentRepository(); _repo.CreateContentAsync( new SimpleContent { Id = "page1", Title = "Page 1", Content = "<b>page1</b>" } ).Wait(); _repo.CreateContentAsync( new ListLandingContent { Id = "page2", Title = "News", Content = "<i>News</i> items" } ).Wait(); _repo.CreateContentAsync( new ListItemContent { Id = "listItem1", Title = "News1", Content = "News item", ListLandingId = "page2" }).Wait(); _mapRepo = new Data.InMemorySiteMapRepository(); }
public static void Setup(TestContext context) { s_repo = new Data.InMemorySiteContentRepository(); s_mapRepo = new Data.InMemorySiteMapRepository(); }