Tag Archives: fakedbset

Be careful when using mocked repository

One of the software development best practices is to use interfaces and dependency injection. But be careful when using a mocked version of your repository. With FakeDbSet an InMemory IDbSet can be created for unit testing purposes. During setup you’d … Continue reading

Posted in Test | Tagged , , , , , | Leave a comment

Could not find a concrete type mapped to MappingAdded

In a handler I tried to publish an event. But the exception Could not find a concrete type mapped to MappingAdded is thrown.
The problem here is that FakeDbSet uses an older version of EntityFramework. Make sure all project reference the same EntityFramework version or remove your unneeded DbContext. Continue reading

Posted in Development | Tagged , , , , , | Leave a comment

Nuget trouble (again)

Keeping the versions of packages in sync was difficult today, again. Now I tried testing my data access code with FakeDbSet. This is an in-memory store for your data, the owner describes it as A ready to use FakeDbSet for … Continue reading

Posted in Test | Tagged , , , | Leave a comment