Framework

Send messages to MSMQ using ScriptCS

Microsoft Message Queuing [MSMQ] is one of the most commonly used framework for building distributed applications. It provides reliable, secure, optional transaction based messaging model, which guarantees message delivery. Messages can be sent and remain in queue until they processed by message handler. Related messages can be processed using a transaction to ensure they are sent in order, delivered only once and successfully retrieved in destination queue. In case of any failure, entire transaction gets rolled back. While sending the message to the queue, if the message handler goes offline, MSMQ persists the message till the message handler becomes active….

Back to basics : Data driven unit testing

Unit testing is one of the most important step in any software development life cycle, however most of the times we developer do not pay much attention to it. Although there are different unit testing frameworks available to effectively and easily write unit test for the code modules, some of the features are still not widely used during unit testing. One of such feature is data driven unit testing. In this article, we will cover – What is data driven unit test? What are its advantages over regular unit testing technique? How to implement it? What is data driven unit…

Infinite scrolling in AngularJS

The other day I was discussing different JavaScript frameworks available to build Single Page Application [SPA] with my team. We discussed multiple options including ASP.Net MVC SPA template, Backbone, EmberJS, Durandal + knockout and AngularJS. By comparing different features available in these JavaScript frameworks, team member skillsets, application complexity and project timelines, team decided to go ahead with AngularJS. One of the important points discussed during these brainstorming sessions was how much data load is necessary during application start-up and how pagination can be implemented asynchronously. Business users also wanted team to come up with some cool ideas like fluid…

Rhino Mocks – Strict, Dynamic, Partial Mocks

Dear Reader, This is the fifth and last post in Rhino Mocks series mentioned below Rhino Mocks Introduction State based verification with Stub Behavior based verification with Mocks Setup and validate expectations Strict Mock, Dynamic Mock, Partial Mock – This article I strongly recommend you to go thru earlier articles of this series to understand basics of unit testing, mocking framework, Test Driven Development etc. In this article I will cover different types of Mocks like Strict, Dynamic and Partial with example. I will refer to below defined Customer class in each of the mock type example. Please note that,…

Rhino Mocks – Setup and validate expectations

Dear Reader, This is the fourth post in Rhino Mocks series mentioned below Rhino Mocks Introduction State based verification with Stub Behavior based verification with Mocks Setup and validate expectations- This article Strict Mock, Dynamic Mock, Partial Mock I strongly recommend you to go thru earlier articles of this series to understand basics of mocking framework, Test Driven Development and even one option to setup the expectation and its validation. In this post, I will cover 4 possible ways to setup and validate the expectations Standard Record Playback Record Playback using lambda expression AAA [Arrange, Act, Assert] Below is the…

1 of 2
12