Don't know if it's in dev-start yet, but I have a helper in TestUtils\MockExtensions.cs called "HasData" which lets you rewrite these as: repository.HasData(new[] {...}). It does the Setup, Returns and AsQueryable for you :)