How to Implement the Repository Pattern in ASP.NET MVC Application

Read full article on the Infragistics blog The Repository Pattern is one of the most popular patterns to create an enterprise level application. It restricts us to work directly with the data in the application and creates new layers for database operations, business logic and the application’s UI. If an application does not follow the … Continue reading How to Implement the Repository Pattern in ASP.NET MVC Application

Creating Unit Tests for ASP.NET MVC Controllers

In this blog post, we will learn to write unit tests for various MVC controller’s behaviors, such as view’s return types, redirecting to different actions etc. Specifically, we’ll cover writing Unit Tests for: ViewData of the Controller TempData of the Controller ViewBag of the Controller View of the Controller Let’s get started! Creating the MVC … Continue reading Creating Unit Tests for ASP.NET MVC Controllers

Step by Step implementing Onion architecture in ASP.NET MVC Application

Source Code on the GitHub Learn Creating N-Tier Applications in C#, Part 1 by Steve Smith here - I learnt lot from this course hence sharing Recently I gave a talk on Onion Architecture in MVC application to the audience of 300 at the C-Sharpcorner conference 2015. Talk was well received and I had a … Continue reading Step by Step implementing Onion architecture in ASP.NET MVC Application

How to create a Container in Azure Storage from MVC application

I am working on a MVC application in which I need to work with Microsoft Azure storage .I had a requirement to create An Azure storage container from the MVC application. In this post I will share my learning that how I created a container programmatically. I created the view as shown in below image. … Continue reading How to create a Container in Azure Storage from MVC application