Testing web service endpoints

Testing server-side components is a key ingredient for building a solid AngularJS application. All web service endpoints should be exercised through tests as they have a relatively low cost in configuration and implementation when using ServiceStack. Because all the core functionality of the application is provided by ServiceStack web services, we will focus on testing these rather than the ASP.NET MVC controllers. You can cover the little functionality provided by ASP.NET MVC in end-to-end tests executed by Protractor.

We will change the strategy here and rather than start exploring unit tests, we will look at endpoint tests first. This is an outside-in test strategy that can also be extended to AngularJS tests depending ...

Get Learning AngularJS for .NET Developers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.