Blog

Blog posts on .NET, Azure, and more.

Angular JS CRUD operations with ASP.NET5 - Part 5

December 05, 2015 by Anuraj

Jasmine Blanket.js Javascript Code Coverage

This post is about enabling javascript code coverage through Blanket.js. First you need to install the blanket.js via bower. So here is my updated bower.json.

Running Jasmine Tests with phantomjs

December 01, 2015 by Anuraj

Jasmine PhantomJS

Last post is about writing javascript unit tests. This post is about integrating Jasmine tests in Continuous Integration. For integrating in CI, you need an application - PhantomJS. PhantomJS is a headless WebKit scriptable with a JavaScript API. You can download PhantomJS from the PhantomJS download page.. To run Jasmine test cases you also require run-jasmine.js.

Dynamically load ASP.NET5 View Components using Jquery

December 01, 2015 by Anuraj

ASP.NET5 JQuery

Long back I wrote a post about loading partial views using JQuery. This post is about loading View Components in ASP.NET5 with the help of JQuery. Similar to previous versions of MVC, this version also supports returning View component from Action Result. So here is the controller code.

Angular JS CRUD operations with ASP.NET5 - Part 4

November 30, 2015 by Anuraj

Angular JS ASP.NET5 Unit Testing Code coverage Javascript

This post is about Angular JS unit testing. This post is using Jasmine; Jasmine is a behavior-driven development framework for testing JavaScript code. For testability I have modified the controller code little bit. Here is the controller.

Angular JS CRUD operations with ASP.NET5 - Part 3

November 24, 2015 by Anuraj

Angular JS ASP.NET5 Unit Testing Code coverage Javascript

As I mentioned in the last post, this post is about client side implementation. Hope you have a basic understanding about Angular JS. If not, please have look into the Angular JS tutorial page. Angular JS comes with two Ajax implementations to communicate to server. One $http and $resource. In this post I am using $http service.

Copyright © 2024 Anuraj. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Powered by Jekyll. Hosted with ❤ by GitHub