Azure has released their novel preview service Azure Web Pub-Sub, a fully managed service that supports native and serverless WebSockets. This service provides a way to send real-time notifications between web applications using few lines of code. We can use this service for chats, live broadcasting, etc. Here we are going to develop a real-time push notification service using Azure Web Pub-Sub for Angular web application.

Angular web application with Azure Web Pub-Sub
Angular web application with Azure Web Pub-Sub

Environment Configuration

As the first step, we need to create an azure web pub-sub service. You can select the Free pricing tier. …

If you want to check that your application is working fine, the best way to follow is Unit Testing. It helps you to maintain your code and increase the code quality. Here we are going to start writing unit test cases for your code from the beginner level. In this blog post, we are talking about the test case writing for components and services.

Component Class Test Case Writing

Here, we have to write test cases only for a single unit, and it should be clean and understandable. The important thing is you need to know what do you expect after running the test case.

Hasini Madhuwanthi

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store