Created
February 5, 2010 14:20
-
-
Save ryansroberts/295819 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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