2833 shaares
5 private links
5 private links
173 results
tagged
csharp
You can easily write unit tests by simply mocking the DbContext methods. For example you could mock the Entities property to always return a fake list of objects. That way the DbContext won’t make any external calls to your data layer.
How do you do that?
to SQL dynamic query and Query with Entity Framework is easy. This concept was first implement by albahari. Later this concept
ReflectionFarmyard.Animals.CSharp").OrderBy(x => x.Name)
First of all, here's our test bed, a class with a delegate and another class to consume it:
When the package is added, it displays a helper piece of html like this: