ASP.NET Core Integration Testing & Mocking using Moq
A guide to setting up integration tests in ASP.NET Core using Moq for mocking external dependencies like databases.
Muhammad Rehan Saeed is a software developer at Microsoft, open-source contributor, and former Microsoft MVP, specializing in C#, .NET, and sharing real-world development experience through live streaming and community engagement.
102 articles from this blog
A guide to setting up integration tests in ASP.NET Core using Moq for mocking external dependencies like databases.
A critique and wishlist for improving the .NET CLI's 'dotnet new' command, focusing on better Visual Studio integration and a modern UI.
A guide to unit testing .NET project templates created with `dotnet new`, including a helper library and practical xUnit examples.
Explains the purpose and best practices for using a .gitattributes file to manage line endings and Git LFS in software repositories.
A developer's experience and technical guide to cloning the massive Windows OS repository using Git and GVFS, detailing setup, challenges, and workflow tips.
Explains how to run ASP.NET Core applications in Docker containers with a read-only file system for enhanced security, including a workaround for a known issue.
A developer discusses alternatives to AutoMapper for object mapping in .NET, focusing on performance and simplicity.
An analysis of ASP.NET Core's maturity, comparing its stability and API evolution to Node.js and the .NET Framework.
A developer's comparison of popular video learning platforms like PluralSight, LinkedIn Learning, and others for tech skills like .NET, JavaScript, and DevOps.
A guide to optimally configuring HttpClientFactory in ASP.NET Core for performance, resilience, and best practices.
Explains how to use the ASP.NET Core QueryHelpers utility to build and parse URL query strings, simplifying URL construction.
A guide to configuring Entity Framework Core for performance and reliability, covering retries, warnings, logging, and query tracking.
A guide on migrating existing databases to use Entity Framework Core's built-in data seeding feature without causing insertion conflicts.
.NET Boxed is a collection of pre-configured project templates for ASP.NET Core APIs and GraphQL, designed to accelerate development.
A guide to setting up and using the dotnet watch tool for automatic application restarts during .NET Core development in Visual Studio.
A developer shares a productivity tip: asking for help online when stuck on a coding problem, then sleeping, often leads to a solution by morning.
A guide to writing Webpack configuration files in TypeScript to improve maintainability and avoid legacy syntax.
A guide to using Docker images for the ELK-B stack (ElasticSearch, Kibana, Beats) to monitor and log applications running in Docker Swarm.
A guide to useful Docker images for administration and visualization, including Docker Swarm Visualizer and Portainer, with deployment examples.
A technical guide explaining Docker labels, including static/dynamic usage and the Open Containers Annotations specification for image metadata.