https://github.com/damieng/linqmock
Mock your remote LINQ queries against LINQ to Objects.
https://github.com/damieng/linqmock
c-sharp linq mock
Last synced: about 1 year ago
JSON representation
Mock your remote LINQ queries against LINQ to Objects.
- Host: GitHub
- URL: https://github.com/damieng/linqmock
- Owner: damieng
- License: apache-2.0
- Created: 2014-07-24T00:29:36.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-20T20:54:58.000Z (almost 12 years ago)
- Last Synced: 2025-04-02T02:44:14.016Z (about 1 year ago)
- Topics: c-sharp, linq, mock
- Language: C#
- Size: 184 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
LINQmock
========
Mock your remote LINQ queries against LINQ to Objects.
Today if you use any provider-specific extensions (e.g. SqlMethods.Like) against LINQ to Objects you'll get exception messages. This makes mocking any kind of queries a real pain.
This project aims to solve that by giving you a way to remap those provider-specific extensions to LINQ to Objects equivalents. The plan is to include a bunch of these pre-made for various LINQ providers, e.g. LINQ to SQL, ElasticLINQ.
This is very early days right now. The basic syntax is:
1. Make your IEnumerable IQueryable
2. Put .Remap(LinqToSqlMap.Instance) on the end of your query
This is currently a portable class library (PCL) under active development with tests to come.