Why we required structured logging?

Why we required structured logging?

Logging is one of the important cross-cutting concerns in software development and operations. It helps to debug or investigate an issue, create business intelligence on user activities and track the state and health of the system. So, it is very important to ensure we have enough and context full logs in place to make developers…

Read More Read More

How to write unit tests with Entity Framework Core?

How to write unit tests with Entity Framework Core?

Introduction The unit test will test only the SUT(system under testing) behavior and correctness and it will not test the SUT’s collaborators You might raise a question how to manage dependencies or eliminate them from the unit test, it is a very good question but to answer for this question is very hard. Fortunately, we…

Read More Read More

Test Double

Test Double

Introduction In a well-designed application,  SUT will not do everything that it required instead it will delegate to one or more collaborators to get things done. Managing these dependencies is one of the hard task and unit test focus on SUT, not other collaborators otherwise it will break the FIRST property. Fortunately, we have Test…

Read More Read More

MS Test V2 Introduction

MS Test V2 Introduction

Introduction MS test is a unit testing automation framework which facilitates to write unit tests in .Net framework. It is the primary unit testing framework for Visual Studio. MS Test provides various elements to write the unit tests. The parameter test was one of the important feature that missed in MS Test V1 and MS…

Read More Read More

Chrome Devtool Tips – $*() Aliases

Chrome Devtool Tips – $*() Aliases

Chrome Devtool provides the shortcut aliases to access the document.querySelector and document.querySlectorAll functions. $() – Alias for document.querySelector function. It may overridden by jQuery when it used in your site. Example: $$() – Alias for document.querySelectorAll function. Example: $x() – Function to find the DOM elements by an XPath expression. Example:

Chrome Devtool Tips – Using Recently Evaluated Expression in Console

Chrome Devtool Tips – Using Recently Evaluated Expression in Console

Chrome Devtool console provide a shortcut to access the output of the most recently evaluated expression. $_ is the shortcut to access the values of most recently evaluated expression in the console. Which is use full when you want to process the output from previously evaluated expression without assigning to a variable. You can find…

Read More Read More

How to register docker registry as a service?

How to register docker registry as a service?

Introduction High availability and scalability are big challenges in the IT world. Assume you are going to provide your private registry as service and you are expecting high traffic to your registry, then you have to carefully design your infrastructure to support the above items. In this article, we are going to see how we can…

Read More Read More

How to secure your private docker registry?

How to secure your private docker registry?

Introduction In my previous article, I explained how to set up your private Docker registry with Docker Registry. All works fine when you are consuming the private registry from the host machine but when you try to access from the remote machine then docker will throw an error about https connection. Also, it is mandatory…

Read More Read More

How to Setup Your Private Docker Registry?

How to Setup Your Private Docker Registry?

Introduction Docker provides various services to manage the docker images and those are hub.docker.com, cloud.docker.com, docker trusted registry and docker registry. Each service was designed with different goals and requirements. Docker hub (hub.docker.com) is the primary source for the public images. We can set up our own private registry by using the Docker Registry, it…

Read More Read More