Tutorial by Examples

In this article we will use a simple database called “Company” with two tables: [dbo].[Categories]([CategoryID], [CategoryName]) [dbo].[Products]([ProductID], [CategoryID], [ProductName]) 1-1 Generate Entity Framework code In this layer we generate the Entity Framework code (in project library) ...
In this layer we will write the application business. It is recommended for each presentation screen, you create the business interface and implementation class that contain all required functions for the screen. Below we will write the business for product screen as example /// <summary> ...
In this example we will use the Business layer in Presentation layer. And we will use MVC as example of Presentation layer (but you can use any other Presentation layer). We need first to register the IoC (we will use Unity, but you can use any IoC), then write our Presentation layer 3-1 Register ...
In Unit Test layer we usually test the Business Layer functionalities. And in order to do this, we will remove the Data Layer (Entity Framework) dependencies. And the question now is: How can I remove the Entity Framework dependencies in order to unit test the Business Layer functions? And the ans...

Page 1 of 1