How to test a class member that is not public using Visual Studio 2010 ?

By | March 7, 2011

There are various ways to test a Class member which is not public By making the private members public of a class under test Breaks the encapsulation principle API is modified just for the sake of testing By making the private members internal of a class under test and annotate the assembly with internalsVisibleTo attribute and you can… Read More »

Find duplicate with Linq

By | March 5, 2011

This small tips discussed about how to get list of duplicate items for the collection that we do in sql. For example I have to get list of the email id which is get entered in user table more than one time. Linq query work same as on the set of collection and which make use of count… Read More »

Multiple Sort For Collection Using LINQ

By | March 1, 2011

There are quite a lot of instance where you need to do a primary sort and you need a secondary sort on the same collection and sometimes even multiple sort. With LINQ we can achieve it pretty straight forward. Let us assume the situation here. We have a list of employees and we need the output to be… Read More »

Run ASP.NET Web Application from Command Prompt

By | February 28, 2011

Visual Studio has its own integrated ASP.NET Runtime engine, which helps to run any ASP.NET web application with in Visual Studio.  While running application from Visual Studio, you must have seen a popup notification in System Tray (As shown in below image) , which is notification of ASP.NET Development Server. This ASP.NET Development Server is nothing but a… Read More »