How to send email in C# asp.net

Knowing how to send email from a web application is very important. It is has many applications, some being email confirmation, forgot password, message to admin, promotions, any other generic messages and the list goes on and on.

The code snippet is pretty…

Unit testing session and application variables without mocking

If you have been unit testing your asp.net web applications that use session and application variables then you almost certainly have encountered this problem and asked yourself “How to unit test HttpContext.Current variables?”. The general answer you would find online is use…