Unit testing in Asp .Net 5(vNext) and mvc 6 using XUnit

In this post we will see how to create Unit tests for Asp. Net 5 (vNext) projects. We will go step by step. First of all Let us see what is xUnit? xUnit.net is a free, open source, community-focused unit testing tool for the .NET Framework. Written by the original inventor of NUnit v2, xUnit.net … Continue reading Unit testing in Asp .Net 5(vNext) and mvc 6 using XUnit

Advertisements

Enable CORS in Asp .Net 5(vNext) and MVC 6

Before going for the basic question "What is CORS?", Let us take a scenario related to that. Let us start from very basic example. Suppose there are 2 URLs which are as below: http://Alphabet.com/abc.html http://Alphabet.com/xyz.html Here above both URLs looks almost same so let us call it "same origin". Now, after making little twist we … Continue reading Enable CORS in Asp .Net 5(vNext) and MVC 6

Implement Sessions in Asp .Net 5(vNext) and MVC 6

Imagine you have created an MVC project and you are all set to create a session object because you want to save your current user email. But after few minutes you will realize that Session object is not working as it was before. Oh! Why is it so? It is because .Net team has created … Continue reading Implement Sessions in Asp .Net 5(vNext) and MVC 6

MVC 6.0.0-beta7 is released

Yes, You heard it right. .Net team has released beta7 of MVC 6 before 2 days and now it is available in Nuget as well you can directly download it. It contains some new features as well as some bug fixes for previous versions. What are some features from beta-7? 1. Client side validation of … Continue reading MVC 6.0.0-beta7 is released