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 of input.

Unit tests essentially check the behavior of a particular unit of the code or the function, and are written by the developers who are implementing the functionalities.


We test the behavior of a function before it becomes part of the whole system and goes to production by writing a piece of code to test this behavior under different conditions. Usually a function gets tested in isolation with the other functions of the system under test (SUT).

Read full article on the Infragistics blog

Step by Step creating Hello World Native Android App using Xamarin

If you are a beginner with Xamarin, this post is here to help you get started. Step by step, we’re going to show you how to create a native Android app using Xamarin.

Xamarin allows us to create native Android and iOS apps using C#. In this post, we’ll assume you have downloaded and installed Xamarin, and we’re going to create the app in Xamarin Studio. Let’s see how it’s done:

Step 1: Create a New Project and App

To create an app, first we need to create a new solution. To do this, launch Xamarin Studio and from the menu select File->New->Solution (or alternatively press Ctrl+Shift+N) to create a new solution.


On the next window, you need to provide the app name and the identifier name. Let’s name the app MyFirstApp. Leave the target platforms and the theme to the default value and click on next as shown in the image below:

Read full article on Infragsitcs blog

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,

  1. Private methods should be tested.
  2. Private methods should not be tested.

To put these things in perspective, let us consider a system under test (SUT) Salary class as shown in the listing below.


A system under test Salary class has two functions:

  1. The CalculateSal method is a public method and it takes two parameters to calculate the salary
  2. The isValidwd method is a private method and it takes one parameter. This function returns true if the number of working days are more than 8, or else it returns false.
  3. The CalculateSal method first checks whether the number of working days is valid or not using the private method isValidWd.
  4. If the number of working days is valid, then salary is calculated by the multiplication of basic salary and the number of working days, or else it is fixed at $1000.

Read full article on the Infragistics blog

How to create an Azure-based real time Chat Application using Firebase and jQuery

In this post, we’re going to show you step by step instructions on how to create a Chat application that’s similar to a group chat messenger where many people at any given time can read and send messages with the group. In this example we’re going to use the following technologies:

  1. Firebase
  2. HTML
  3. Bootstrap
  4. jQuery

Eventually we will host the application on the Microsoft Azure website, and we’ll use Visual Studio IDE to develop the application.

You can see the real time chat application we are going to build in this article live at: . Feel free to chat with us at this URL!

Setting up Firebase

Register on and login to access the Firebase portal. In the right hand side, you’ll find the option to create a new app. Give your app a name and the URL to create a new app in Firebase.

Read the full article on the Infragistics blog

Hosted workshop on SPA using AngularJS for BirlaSoft

On Saturday 18th July, for Infragistics, I delivered a workshop on Single Page Application using AngularJS for BirlaSoft . A special thanks to C-SharpCorner Delhi Chapter for arranging the workshop.


5 Hrs. long workshop was attended by around 45 engineers. We learnt about the following topics,

  • Introduction of AngularJS
  • Controller and $scope
  • Views and Routing in AngularJS
  • Directives
  • CORS in Web API
  • Ignite UI with AngularJS

We were mange to create an end to end AngularJS based Single Page application performing CRUD operation using the ASP.NET Web API.

Audience participations was highly energetic and some of their feedback are motivating for us. One of such feedback is below:



Overall it was productive Saturday for all of us and I personally had fun time teaching engineers of BirlaSoft.


Once again big thank you to Infragistics and C# Corner Delhi chapter for the opportunity. If you are interested in such workshop for your organization, feel free to reach us.