Blog posts on .NET, Azure, and more.

Generating Code Coverage Reports in .NET Core

October 19, 2022 by Anuraj

DotNetCore AspNetCore DotNet UnitTesting

This post is about how to enable code coverage for .NET Core and how to get the code coverage report. I already wrote few blog posts related to enabling code coverage in .NET Core and ASP.NET Core. In this blog post I am exploring the dotnet tool dotnet coverage and how to use this tool to collect code coverage and generate code code coverage report using the reportgenerator tool. I will also explains how we can be integrated to GitHub actions.

Change schema name in Entity Framework Core

October 18, 2022 by Anuraj

dotnet dotnetcore efcore

This post is about how to change schema name in EF Core. By default when we are running EF Core migrations, EF Core will create tables in the default dbo schema. We can change it with fluent API and using attributes.

Add Unit Tests To Your Azure Functions

October 05, 2022 by Anuraj

Azure Functions Serverless UnitTesting

This post is about how to add unit tests your azure functions. Like ASP.NET Core apps and Web APIs, we can add unit tests for Azure Functions as well. I am using Visual Studio and C#. I am creating the function in .NET as well. First I am creating an Azure Function using Visual Studio. I am modifying the existing function a little and the updated function looks like this.

Building ASP.NET Core Minimal API in VB.NET

September 22, 2022 by Anuraj

AspNetCore MinimalApi VBNet

This post is about how to build ASP.NET Core Minimal API in VB.NET. Long back I wrote a blog post about Building ASP.NET Core web apps with VB.NET. Today Maurice asked whether we can build ASP.NET Core Minimal APIs in VB.NET. So I thought I will wrote a blog post about it.

Implementing Google Web Risk API in ASPNET Core

September 19, 2022 by Anuraj

AspNetCore GoogleCloud WebRisk Security

This post is about how to implement Google Web Risk API in ASP.NET Core with C#. Google Web Risk is a Google Cloud service that lets client applications check URLs against Google’s constantly updated lists of unsafe web resources. It is an enterprize version of the Google Safe Browsing API. When I tried to implement this API in our application. Unfortunately I couldn’t find in C# or .NET Sample. The documentation site contains only Java sample. So I thought of posting it.

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