Getting started with .NET unit testing using NUnit

It’s usually good practice to have automated unit tests while developing your code. Doing so helps you find bugs early in the development cycle and saves you time in the long run. These tests can be run by the developer multiple times to verify the behavior of a particular unit of code for different setsContinueContinue reading “Getting started with .NET unit testing using NUnit”

How to Unit Test Private Methods in MS Test

Before we start to see, how a private method can be unit tested using the MS Test? Let us discuss whether it is a good idea to test a private method or not? Often I have seen there are two school of thoughts, Private methods should be tested. Private methods should not be tested. ToContinueContinue reading “How to Unit Test Private Methods in MS Test”

Exploring Angular’s “Controller as” Syntax and the vm Variable

Read full article on the Infragistics blog Often, I hear developers ask “What is the ‘controller as’ syntax and how it is different from the $scope object approach of controller creation?” In this post we will learn about controller as syntax and compare it with the $scope object approach of controller creation. In AngularJS 1.2,ContinueContinue reading “Exploring Angular’s “Controller as” Syntax and the vm Variable”

Simplifying the Liskov Substitution Principle of SOLID in C#

Before I start writing this article, I want to thank Steve Smith for his great course on the same topic with Pluralsight. This post is inspired by that course. Read full article on the Infragistics blog here The Liskov Substitution Principle says that the object of a derived class should be able to replace anContinueContinue reading “Simplifying the Liskov Substitution Principle of SOLID in C#”

How to work with the Bootstrap DropDown in AngularJS

Read full article on the Infragistics blog In this post we will learn how to work with the Bootstrap dropdown in an AngularJS APP. In a step by step by approach, we’ll cover how to: Bind a dropdown with the controller; Select an item in the drop down and pass to controller; Bind a dropdownContinueContinue reading “How to work with the Bootstrap DropDown in AngularJS”

Understanding scopes in AngularJS custom Directives

Read full article on the Infragistics blog In this post we will learn about different kinds of scopes in AngularJS custom directives. First we’ll start with a high level introduction of directives and then focus on scopes. Directives Directives are one of the most important components of AngularJS 1.X, and have the following purposes: GivesContinueContinue reading “Understanding scopes in AngularJS custom Directives”

A Step-by-Step Guide to Working with the ASP.NET Web API and AngularJS

Read full article on the Infragistics blog In this post we will learn to work with AngularJS and ASP.NET Web API in a step by step manner. I’ll assume that you are already familiar with some of the basic terms like what AngularJS and a Web API is, and we’ll work in a hands-on way,ContinueContinue reading “A Step-by-Step Guide to Working with the ASP.NET Web API and AngularJS”

Don’t Create REST APIs with WCF REST Services…use Web API Instead

There was time when developers used to create Web Service using the WCF. Their argument was using basicHttpBinding makes a WCF service as a Web Service. Yes that ASMX based web service. I never agree to this argument. Clearly WCF was an evolvement over ASMX Web Service. Now let us talk about purpose of thisContinueContinue reading “Don’t Create REST APIs with WCF REST Services…use Web API Instead”

Simplifying Routing in AngularJS

Usually AngularJS is used to create a single page application with multiple views. But we can create multiple views in an AngularJS-based single page application by using routing – and in this post we’ll learn how to do that! What is Routing? Routing allows us to logically divide the application in the multiple logical viewsContinueContinue reading “Simplifying Routing in AngularJS”

Simplifying the JavaScript Callback function for .NET developers

In JavaScript, functions are objects, and they can: Be passed as an argument to another function Return as a value from a function Be assigned to a variable Let’s assume that you have a JavaScript function (let’s call it function A) with the following properties: Function A takes another function (let’s call this one functionContinueContinue reading “Simplifying the JavaScript Callback function for .NET developers”