Unit Testing and Mock MongoDB DbContext in ASP.NET Core – Part1 In our last article, we already learned the Implementation of a Repository pattern around...
Continue ReadingUnit Tests An Asynchronous Method In .NET Core Example
Using Moq to mock an Asynchronous Method in .NET Core Unit Tests Today in this article, we will learn how to Unit Tests An Asynchronous...
Continue ReadingLogging in .NET Core Windows Forms or WPF Application
Logging in .NET Core Windows Forms or WPF Application In this article, we will learn, how to add Logging in .NET Core Windows Forms or...
Continue ReadingDependency Injection in Windows Form or WPF Application .NET Core
Dependency Injection in Windows Form or WPF Application .NET Core In this article, we will attempt to implement a simple approach of implementing Dependency Injection...
Continue ReadingResolved:MissingMethodException: Method not found: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware
MissingMethodException: Method not found: StaticFiles.StaticFileMiddleware..ctor Issue Description Swagger Open API documentation gives below error in .NET Core WebAPI after installing/migrating old .NET Core application to...
Continue ReadingMongoDB Mock and Unit Test a method returning IAsyncCursor Synchronously
MongoDB Mock and Unit Test a method returning IAsyncCursor In this article, I shall talk about how to perform MongoDB Mock and Unit Test a...
Continue ReadingHow to Autogenerate C# Class using JSON or JSON Schema
Autogenerate C# Class using JSON string or JSON Schema Today in this article, we will see a few techniques of how to autogenerate C# Class...
Continue ReadingResolved: The modifier is not valid in C#. Use language version and greater
The modifier is not valid in C#.Use language version and greater Issue Description .NET build (MSBuild or Visual Studio) gives below or similar format of...
Continue ReadingResolved: Feature ‘using declarations’ is not available in C#
Feature ‘using declarations’ is not available in C# 7.3. Please use language version 8.0 or greater Issue Description .NET build (MSBuild or Visual Studio) gives...
Continue ReadingResolved:InvalidOperationException- No method public static IHostBuilder CreateHostBuilder
System.InvalidOperationException : No method public static IHostBuilder CreateHostBuilder Issue Description: .NET Core Integration Testing runtime gives below error, System.InvalidOperationException : No method ‘public static IHostBuilder...
Continue Reading