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 sets … Continue 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. To … Continue 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, … Continue 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 an … Continue 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 dropdown … Continue 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: Gives … Continue 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, … Continue reading A Step-by-Step Guide to Working with the ASP.NET Web API and AngularJS