zarxor / Example.EntityFramework.Testing

Example of testing entity framework with IDbContext and moq4

Home Page:https://www.johanbostrom.se/blog/using-idbcontext-and-moq4-to-ease-di-and-test-your-entity-framework-context

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Testing entity framwork code with moq4 and IDbContext

This is some example code for mocking and testing your code that is based on entity framework.

It's mainly for use when working with dependency injections and interfaces for your database. But can be used for other purposes as well.

About

Example of testing entity framework with IDbContext and moq4

https://www.johanbostrom.se/blog/using-idbcontext-and-moq4-to-ease-di-and-test-your-entity-framework-context

License:Apache License 2.0


Languages

Language:C# 100.0%