About
This blog is mostly about my work, but expect an occasional home project, productivity tip and tooling review.Search
Categories
- Conference (21)
- Development (217)
- Security (19)
- Test (32)
- Tooling (174)
- Uncategorized (168)
Most used tags
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
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 .NET, Entity Framework, fakedbset, nservicebus, NuGet, xunit
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