public static IList<ContentType> CreateTestContentTypes() { List<ContentType> results = new List<ContentType>(); ContentTypeRepository repo = new ContentTypeRepository(); ContentType item = new ContentType() { Text = "text" }; results.Add(item); repo.Add(item); item = new ContentType() { Text = "html" }; results.Add(item); repo.Add(item); item = new ContentType() { Text = "xhtml" }; results.Add(item); repo.Add(item); repo.Save(); return results; }