C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Tags
No tag found
Content Filter
Articles
Videos
Blogs
Resources
News
Forums
Interviews
Complexity Level
Beginner
Intermediate
Advanced
Refine by Author
[Clear]
Ziggy Rafiq(3)
Akhil Mittal(2)
Jaimin Shethiya(2)
Varun Setia(1)
Bishwanath Dey Nayan(1)
Jay Krishna Reddy (1)
Mehr Muhammad Hamza (1)
Ajay Kumar(1)
Dinesh Kushwaha(1)
Jignesh Trivedi(1)
John Charles Olamendy(1)
Deepak Pippal(1)
Gustav Stiegr(1)
C# Curator(1)
Catcher Wong(1)
Resources
No resource found
Testing with Moq for Clean and Reliable Code in ASP.NET Core with C# 13 and xUnit
Jun 08, 2025.
With this tutorial, you will learn how to use C# 13, xUnit, and Moq to test your APIs in ASP.NET Core using best practices. The guide was written by Ziggy Rafiq.
Writing Efficient Unit Test Cases with Moq and Bogus
Mar 21, 2022.
Writing Efficient Unit Test Cases with Moq and Bogus.
Unit Testing With xUnit And Moq In ASP.NET Core
Jul 26, 2021.
In this article first, we will try to explore unit testing with a very basic math calculation service and after that we will try to use Mocking for unit testing in different layer of application.
Unit Testing Using XUnit And MOQ In ASP.NET Core
Apr 06, 2021.
This article will showcase the Unit testing in .Net core using Xunit and Moq
RESTful Day Eight: Unit Testing And Integration Testing in WebAPI Using NUnit And Moq framework: Part Two
Mar 07, 2016.
In "RESTful Day Eight: Unit Testing And Integration Testing in WebAPI Using NUnit And Moq framework: Part Two," learn to rigorously test WebAPI endpoints, employing NUnit and Moq for comprehensive unit and integration testing, ensuring robustness and reliability in API development.
RESTful Day #7: Unit Testing and Integration Testing in WebAPI using NUnit and Moq framework: Part 1
Mar 01, 2016.
Explore essential aspects of RESTful API development with a focus on Unit Testing and Integration Testing using NUnit and Moq framework in WebAPI. Delve into testing strategies and automation for robust software development.
Moq Unit Testing in .NET Core with xUnit
Jan 03, 2025.
This guide covers mocking dependencies, setting up test projects, and writing efficient unit tests for your applications. Perfect for developers seeking to enhance their testing skills and build robust software.
Mock Testing with MOQ
Sep 18, 2023.
This article is about Imporanct and Use of Mock Testing. I have explained Mock Testing in a simple way, and demonstrated the use with the code example.
Practical ASP.NET Core Unit Testing with xUnit, MOQ, and FluentAssertions
Sep 06, 2023.
Explore ASP.NET Core unit testing with xUnit, MOQ, and FluentAssertions. Learn to set up your project, write tests, and mock dependencies for reliable software development.
Moq Mocking Framework With xUnit.net Unit Test In C#
Sep 17, 2018.
In this article, we will learn how to setup Moq mocking framework with xUnit.net unit testing framework.
Moq - Unit Test In .NET Core App Using Mock Object
Feb 14, 2018.
The Unit test is a block of code that helps us verify the expected behavior of the other code in isolation; i.e., there is no dependency between the tests. This is a good way to test the application code before it goes for quality assurance (QA).
Mocking in .NET with Moq
Nov 09, 2010.
In this article, I will show how to use Moq as the mocking framework in testing environments to isolate dependencies between objects in .NET solutions.
Unit testing for a .NET Web API project.
Sep 25, 2025.
Master unit testing for .NET Web API projects! This guide covers setup with xUnit, NuGet package installation (FluentAssertions, Moq), and structuring your solution. Learn to write effective unit tests for services and controllers, including mocking dependencies. Follow best practices like AAA pattern and independent tests for robust, maintainable code. Elevate your .NET API development with confidence!
Best Practices and Code Examples for Azure Functions using C# 13
Jun 09, 2025.
Ziggy Rafiq shares best practices for structuring, testing, and deploying production-grade serverless functions using Azure and xUnit in this article.
Mastering the Factory Pattern in C# 13: Best Practices with Real-World Examples
Jun 08, 2025.
With this best practices guide by Ziggy Rafiq, you will learn Factory Pattern in C# 13 with clean architecture, DI, and testable design.
Class Fixture xUnit in .NET Core Test Project
Feb 06, 2025.
This article explains how to implement Class Fixtures in an xUnit test project, manage shared test contexts, and use dependency injection for better test organization and performance.
Using MockingContext: A Flexible IServiceProvider Implementation in C#
Oct 03, 2023.
Explore the MockingContext class: a custom implementation of the IServiceProvider interface in C#. Learn how this class provides an efficient way to automatically instantiate or mock services on-the-fly. Ideal for unit testing and rapid prototyping in .NET applications.
Top 11 .NET Libraries Every Developer Should Know
May 16, 2023.
Are you a .NET developer looking to enhance your coding skills? Here's a list of the top 11 .NET libraries that every developer should know. These libraries offer various functionalities and can greatly simplify your development process. Whether you're working on web applications, data processing, or user interface design, these libraries will be valuable additions to your toolkit.
Write Unit Tests For Database Related Business Code
Aug 21, 2022.
This article introduce some ways to write unit tests for database related business code.