If you haven’t gone through my other posts about unit testing, then I would recommend you to please walk through these posts first: All about unit testing and Example of unit testing.
Read MoreFunc delegate in C#
Func is a generic delegate introduced in .Net framework version 3.5. Generally, whenever we want to create delegate, we follow below procedure:
Read MoreVariable number of routes in ASP.Net MVC
We all know about default routing mechanism of ASP.Net MVC that is how routing is works. I would call below routing mechanism as static routing. In this routing, our URL pattern is fixed. See below pic.
Read MoreParameterized unit tests in MS test framework
Earlier, In MS test framework, we do not have any options to create Parameterized unit tests. So all we have to do is we have to write multiple unit test cases with same code. See below example which dictate this situation.
Read More