Monthly Archives:: October 2011

How to unit test internal classes in .net

Posted by & filed under .Net, Miscellaneous, Unit Testing.

Often we used to isolate our classes using internal access modifier, in ideal scenario it doesn’t require to write unit tests for internal classes. But sometimes we require to do  test internal classes. We can do it using two ways Using InternalsVisibleTo attribute : This attribute helps to expose internal classes of an assembly to [...]

Test impact analysis in Visual Studio 2010

Posted by & filed under .Net, .Net 4.0, Unit Testing, Visual Studio.

Test impact analysis helps developers to identify which all tests should run after code changes. This feature only available in Ultimate and Premium editions and only works with Managed code. Create a class library project, it is our production code, this library allows numbers to Add and Subtract numbers. And here is the implementation. And [...]

How to add simple water mark to images

Posted by & filed under .Net, .Net 4.0, ASP.Net, Windows Forms.

While working on one of my friend’s blog, I got a chance to write a code snippet which helps to add water mark for all images automatically. And I created a simple library do this. I added few extra options, it may not work properly, I didn’t tested it Happy Coding

Open Visual Studio Files As Administrator

Posted by & filed under Miscellaneous, Visual Studio, Windows 7.

Debugging WCF service requires to run the visual studio as Administrator, you can do it by right clicking the Visual Studio shortcut, Select Properties, and in Shortcut tab, click on Advanced button, it will display Advanced Properties, check the Run as administrator option. But this option will not work, when you are opening a project [...]

How to enable remote connections to SQL Server 2008 using command line

Posted by & filed under SQL Server.

Here is a small sql snippet, which will helps to enable remote connections using Command Line. It will enable remote connections to your SQL Server. Happy Coding