Blogger Widgets
  • Sharing Photos using SignalR
  • TFS Extenstion - allows copy work items between projects
  • Displaying jquery progressbar with ajax call on a modal dialog
  • Managing windows services of a server via a website
  • Exploring technologies available to date. TechCipher is one place that any professional would like to visit, either to get an overview or to have better understanding.
  • SignalR

    Sharing Photos using SignalR

Search This Blog

Friday, 25 October 2013

Restricting access to a webservice in ASP.NET

Restricting access to a webservice can be done via web.config but if you would want to make the decision at runtime then here is an example of how you could achieve this protected void Application_BeginRequest(Object sender, EventArgs e) { if (/*Condition*/) { if (HttpContext.Current.Request.Url.ToString().Contains("Admin.asmx")) { HttpContext.Current.Response.StatusCode = 404; } } } Genius ain't...

Wednesday, 16 October 2013

Mock frameworks for .NET Part 2

As we have already seen the basics of Mock framework, let's look at some of Mock frameworks that are available and understand what they do or don't support. NMock Software License Apache License 2.0 Last Active Jul-2011 Latest Version NMock3 Supported .NET Version .NET 4.0 Build Server Integration No Code Coverate Integration No Mock Interfaces Yes Mock Everything No Mock Legacy Code No Auto Recursive...

Monday, 7 October 2013

Mock frameworks for .NET Part 1

Mock frameworks are used for unit testing your code and are used for Test Driven Development (TDD). A mock framework should support Arrange Act Assert (AAA) pattern. There are various mock frameworks available and choosing the right one is not easy. Before looking at various frameworks available let's understand some basics of what a framework should have to be known as a Mock framework. Mock Interfaces & abstract classes Interfaces...
Copyright © 2013 Template Doctor . Designed by Malith Madushanka - Cool Blogger Tutorials | Code by CBT | Images by by HQ Wallpapers