markrendle / Simple.Data

A light-weight, dynamic data access component for C# 4.0
MIT License
1.33k stars 302 forks source link

Simple.Data 2.0 - InMemoryAdapter missing? #374

Open mikepc opened 9 years ago

mikepc commented 9 years ago

Since 2.0 isn't officially released yet there's no documentation about how to unit test it. Could you give me a sample of how to make a basic unit test with the 2.0 branch?

InMemoryAdapter isn't even resolving, have no idea where to go from here.

Examining the unit tests in the 2.0 branch isn't helpful because I do see some InMemoryAdapter usage, but I don't know where the class is coming from. The InMemoryTests in the branch are deprecated I guess, but I don't know how to test stuff now.

Any help pretty please?

mikepc commented 9 years ago

I recognize it's my own limitation that I'm having a hard time in wrapping my brain around the unit tests in the main project but I just can't figure out how the consumer is expected to use the mocking framework etc.

I posted a question on stack overflow looking for some in the community but they pulled my question on the basis that it was somehow off topic :-(.

I really love Simple.Data 2, the async/await is absolutely essential for my project, and this is the best solution I have found for getting to my data without a beefy DAL, or running straight SqlCommands which have their own difficulties I've found in unit testing.

I'm cc'ing the simple.data google group on the hopes that something might come of it.

jroliveira commented 8 years ago

+1