Skip to content

Instantly share code, notes, and snippets.

@ryansroberts
Created February 5, 2010 14:20
Show Gist options
  • Save ryansroberts/295819 to your computer and use it in GitHub Desktop.
Save ryansroberts/295819 to your computer and use it in GitHub Desktop.
var newsPage = startPage.MakeChildOfType<NewsListPage>()
.Persist();
newsPage.MakeChildrenOfType<NewsPage>(12)
.Persist();
var textPages =startPage.MakeChildrenOfType<TextPage>(3)
.Persist();
foreach (var textPage in textPages)
textPage.MakeChildrenOfType<TextPage>(5)
.Persist();
var sysPage = startPage.MakeChildOfType<SystemPage>()
.Called("System")
.Persist();
sysPage.MakeChildOfType<SiteMapPage>()
.Called("Sitemap")
.Persist();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment