Unit testing repository pattern using Moq, Shouldly in xUnit framework part 1

Now that you have implemented Repository pattern with Unit of work implementation for your Ntier solution data access layer (DAL) ; let’s talk about Unit testing infrastructure that we have in place – my ORM of choice is Entity Framework yours’s could be Nhibernate however the concepts are much the same Here is my implementation structure for Ntier solution as I will be talking about layering and cross cutting concerns in the projects. Install-package Moq Install-package xUnit Install-package Shouldly Moq: […]

Read More Here! 0

file folder name too long to delete nodejs

Ever faced the problem of deleting files/folders on windows when working with nodejs modules. Nodejs has a plugin that can with that pesky windows file name too long error, its called rimraf and can be downloaded from npm : npm install -g rimraf And then simply run the plugin from command line as we usually do with nodejs modules C:>rimraf <dir> That’s all!

Read More Here! 1

AngularJS remove directive tag from dom by adding content

I had been looking for a way to remove the Domain Specific Language (DSL) tag that we create through AngularJS directive, most of the documentation talks about transclude and all but none highlight the replacing tag with inner cotent Lets talk about the example below: View the code on Gist. View the code on Gist. The directive tags will be replaced by their respective template content instead of being added inside the directive tags. Update: make sure you add one […]

Read More Here! 0

Using gulp and bower for build automation and dependencies management for angularjs app part2

This is the continuation part 2 of the Using gulp and bower for build automation and dependencies management for angularjs app. In this part I am going to cover  rest of the gulpfile.js which is used to start the express server, reload the browser using browserSync and watching the files. I will show below how we write a task that I am calling ‘startExpress’ to run the express server instance on port 4000 gulp.task(‘startExpress’,[‘serve’], function () { var app = express(); […]

Read More Here! 0

Using gulp and bower for build automation and dependencies management for angularjs app part1

This post is going to be about how to use gulp and bower for dependencies management and automation. In my last post we setup the angularjs project with yeoman scaffolding and visual studio 2013  ; this is the continuation of the next part however this post can be used separately as well for gulp and bower: Gulp.js  Gulp is a streaming build / task system ; it uses pips for streaming data that needs to be processed; like for instance minification […]

Read More Here! 0

Starting with yeoman(yo man) and visual studio 2013 angularjs spa development

Today I am going to provide a walk through of how to setup yeoman scaffolding tool for  AngularJS and use the angularjs spa files with visual studio 2012+ for development. I am sure everyone is already familiar with npm modules (npm stands for node package manager) we will be using it alot in this post. Npm is available as soon as you install Node.js on windows or unix environments. In order to use yeoman scaffolding for angularjs development we will install […]

Read More Here! 1