Hey there friends! If you are a .NET developer who loves to create console applications, you might have wondered how to make them more appealing and user-friendly. Sure, you can use Console.WriteLine and Console.ReadLine to output some text and get some input, but that’s pretty boring and limited. What if you want to display some colors, styles, tables, trees, […]
Author: Mohamad Dbouk
Say Hello to Reliable Minimal APIs with Integration Tests
Hi there! Integration testing is an important part of the software development process because it helps ensure that your APIs are working correctly and returning the expected result. Unfortunately, many people often mix up integration tests with mock testing and use mock for integration tests. This can lead to issues when testing APIs, as mock […]
From Frustrated to Successful: My Experience Deploying SonarQube in Azure
SonarQube is a popular open-source platform for continuous code inspection that helps developers identify and fix coding issues, security vulnerabilities, and other bugs in their codebase. As someone who has worked on multiple software projects, I can attest to the importance of having a tool like SonarQube in your toolkit. It saves time and prevents […]
The Power of Bicep: Deploying on Azure in a Snap
If you’re looking for a simple and efficient way to deploy your application on Azure, you’re in the right place. In this blog post, I will guide you through the process of deploying an existing docker image on Azure using Bicep. It’s easier than you might think, and a lot more fun too! You can […]
You no longer need a Dockerfile
The .Net 7 release is bringing a lot of changes, and one of the most significant is the removal of the need for a Dockerfile. Container images are now a supported output type of the .NET SDK. You no longer need a separate Dockerfile to containerize your .NET applications. You can publish your application and […]
Update Azure SQL Server Firewall rules using Azure CLI
If you’re used to working with Azure SQL Server without a private endpoint or virtual network, you might be used to adding your public IP to the Azure SQL Server Firewall rules each time your public IP changes. Luckily, there’s an easy option: use the Azure CLI to update the network firewall rules with your […]
How to Mock using NSubstitute
Unit tests are code written to test small pieces of functionality of big programs. Performing unit tests is always designed to be simple, A “UNIT” in this sense is the smallest component of the large code part that makes sense to test, mainly a method out of many methods of some class. Unit tests take […]
Build your own cli because you can
I always admire the azure cli, my DevOps journey in the past few years was richfull with the usage of azure cli, and that made me curious on how to build my own, in a similar way to the Azure one. follow me in this blog post where I’m going to show you my exact, step-by-step, process for creating a cli using dotnet C#.
Let’s benchmark .NET using BenchmarkDotNet!
In this blog, we will deep dive into BenchmarkDotNet package and see how it can help us improve our dotnet application. What is Benchmarking? Benchmarking is the act of comparing similar products, services, or processes in the same industry. When benchmarking it is very essential to measure the quality, time, and cost. Benchmarking will let […]