Skip to content

Instantly share code, notes, and snippets.

@beyond-code-github
Created May 28, 2013 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beyond-code-github/dd37c0e429ddbf44155a to your computer and use it in GitHub Desktop.
Save beyond-code-github/dd37c0e429ddbf44155a to your computer and use it in GitHub Desktop.
Movies test data
[LinqToQueryable]
public IQueryable<Movie> Get()
{
return new List<Movie>
{
new Movie {
Title = "Matrix (The)", ReleaseDate = new DateTime(1999, 3, 31),
MetaScore = 73, Director = "Andy Wachowski\\Lana Wachowski",
Recommended = true
},
new Movie {
Title = "Avatar", ReleaseDate = new DateTime(2009, 12, 17),
MetaScore = 83, Director = "James Cameron",
Recommended = false
},
new Movie {
Title = "Spaceballs", ReleaseDate = new DateTime(1987, 6, 24),
Director = "Mel Brooks", MetaScore = 46,
Recommended = true
},
new Movie {
Title = "Return of the Jedi", ReleaseDate = new DateTime(1983, 6, 2),
MetaScore = 52, Director = "Richard Marquand",
Recommended = true
},
new Movie {
Title = "Fellowship of the ring (The)", ReleaseDate = new DateTime(2001, 12, 10),
MetaScore = 92, Director = "Peter Jackson",
Recommended = true
}
}.AsQueryable();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment