C# Corner
Tech
News
Videos
Forums
Trainings
Books
Live
More
Interviews
Events
Jobs
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]
Sourav Kayal(5)
Ziggy Rafiq(3)
Nagaraj M(2)
Amit Choudhary(2)
Ananya Desai(1)
Pratik Chavan(1)
Gajendra Jangid(1)
Ashutosh Gupta(1)
Dinesh Kushwaha(1)
Geo J Thachankary(1)
Gustav Stiegr(1)
Kajul Nisha(1)
Kunj Sangani(1)
Gurpreet Arora(1)
Periyasamy Vellingirisamy(1)
Neeraj Shende(1)
John Charles Olamendy(1)
Brajesh Kumar(1)
Rohit Gupta(1)
Ajay Narkhedkar(1)
Saurav Kumar(1)
Praveen Kumar(1)
Gourav Jain(1)
Jaimin Shethiya(1)
Naveen Kumar(1)
Mervyn Manilall(1)
Safyan Yaqoob(1)
Ajay Kumar(1)
Mehr Muhammad Hamza (1)
Mohit Kala(1)
Sarathlal Saseendran(1)
Sameer Shukla(1)
Ganesan C(1)
Adrita Sharma(1)
Sumit Kharche(1)
Venkatesh Kumar(1)
Jothimani Elumalai(1)
Mangesh Kulkarni(1)
Mukesh Kumar(1)
Jignesh Trivedi(1)
Sibeesh Venu(1)
Anubhav Chaudhary(1)
Babula Pradhan(1)
Resources
No resource found
How to Build AI-Powered API Mocking Services in ASP.NET Core
Jun 26, 2026.
Build intelligent AI-powered API mocking services in ASP.NET Core to accelerate development, enable realistic testing, and improve collaboration.
Implementing API Mocking for Automation Testing
Aug 22, 2025.
API mocking is a technique used to simulate the behavior of real APIs during testing. It helps isolate your system under test, test edge cases, and avoid dependencies on external services.
How to Write Unit Test Case with Mocking Service in Angular
Feb 24, 2024.
Learn how to write unit tests with mocked services in Angular using Jasmine and TestBed. This step-by-step guide demonstrates creating a mock service and testing component behavior in isolation for better reliability.
Writing Unit Test Using XUnit And Mocking Frameworks (NSubstitue/FakeItEasy)
Apr 10, 2020.
In this article, you will learn about Writing Unit Test using XUnit and Mocking Frameworks like NSubstitue or FakeItEasy.
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.
Unit Testing in .NET Core - Mastering Mocking
Oct 09, 2023.
In this post, we will explore the concept of mocking in unit testing using xUnit, discuss different types of mocks, and show how to write testable code that supports mocking.
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.
Unlock the Potential of Email Mocking: Papercut Integration In C# .NET Core 7 Console Apps
May 22, 2023.
This article explores how to effectively test email functionality in a .NET Core C# console application using Papercut. Discover the step-by-step process of mocking Outlook 365 Office emails, sending test emails, and validating email content within the console app. Learn how Papercut simplifies the testing process and enhances the reliability of email-related features.
Mocking API Responses Made Easy With Graph Developer Proxy
Apr 07, 2023.
Improving API Development Workflow and Reducing Costs with Graph Developer Proxy Mocking
Mocking A REST API For Your Front-End Application😀
Jun 17, 2021.
In this article, you will learn about Mock a REST API for your Front-End application and generate fake data.
Mocking Httpclient Using XUnit In .Net Core
Jun 10, 2020.
Mocking HttpClient using XUnit with the help of HttpClient property in Interface (Wrapper class).
Mocking Dependencies In Angular Unit Tests
Dec 23, 2019.
Angular unit tests often require mocking dependencies for isolated testing. Utilize TestBed and Jasmine's spyOn function to mock services, HTTP requests, and other dependencies, ensuring comprehensive testing coverage for Angular components.
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.
Mastering .NET Interviews – Part 9: Testing & Performance
Jun 20, 2026.
Master .NET interviews: Learn unit/integration testing, mocking, DI, and performance tuning (caching, async, profiling).
Monkey Patching in Python: What It Is and How to Use It
Mar 29, 2026.
Learn what monkey patching in Python is and how to use it safely in real projects. This practical guide shows what monkey patching does, how it works, when to use it, and how to avoid common mistakes.
Mastering Dependency Injection in ASP.NET Core – Complete Beginner to Advanced Guide
Nov 23, 2025.
This article provides a complete and detailed understanding of Dependency Injection (DI) in ASP.NET Core, covering everything from basic concepts to advanced topics such as IoC containers, service lifetimes, middleware injection, captive dependency issues, and multiple service implementations. With real-world examples, clean architecture explanations, and interview-oriented insights, this guide helps developers build scalable, maintainable, and testable applications while improving their professional knowledge and .NET development skills.
Mock vs Stub vs Simulator vs Emulator: Key Differences
Oct 03, 2025.
Demystify Mocks, Stubs, Simulators, and Emulators with our comprehensive guide. Learn the key differences, benefits, and real-world use cases of each test double. Master unit, integration, and compatibility testing for high-quality software. Improve test coverage, reduce costs, and accelerate delivery in Agile and DevOps environments.
How to Prepare for a Google SWE Interview(2025)
Aug 04, 2025.
Learn how to prepare for the Google Software Engineer interview in 2025 with a clear roadmap, study resources, top mistakes to avoid, and insider tips for coding, system design, and behavioral rounds.
Building a Complete Book Store App: What I Learned About Full-Stack Development
Jul 16, 2025.
I built a full-stack book store app with FastAPI and React, learning real-world app architecture, clean APIs, responsive UIs, error handling, and deployment. It’s practical, scalable, and actually production-ready.
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.
Java 21 JUnit Testing Best Practices
Jan 21, 2025.
The best practices for JUnit testing in Java 21 by Ziggy Rafiq include leveraging new language features like record patterns and string templates. Develop maintainable and robust Java applications by leveraging test isolation, AAA patterns, and parameterized tests.
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.
The Complete Guide to NUnit Testing in C# 13 and .NET 9
Dec 10, 2024.
This comprehensive guide explains NUnit testing in C# 13 with .NET 9 with detailed explanations, modern testing techniques, and practical code examples. Authored by Ziggy Rafiq.
GENERATE_SERIES Function New T-SQL Enhancements in SQL Server
Oct 25, 2024.
The GENERATE_SERIES function in SQL Server 2022 creates sequences of numbers or dates between specified start and end values, with an optional step. It's beneficial for reporting, filling data gaps, and generating test data.
Decouple Frontend and Backend with Postman Mock Server in Angular
Aug 23, 2024.
Postman Mock Servers let front-end developers bypass backend dependencies by simulating API responses. In an Angular project, configure interceptors to direct API calls to mock servers or actual APIs based on the environment.
Getting Started with Unit Testing in ASP.NET Core
Aug 22, 2024.
Learn about essential testing frameworks like xUnit and NUnit, explore mocking and dependency injection techniques, and gain insights into best practices for writing robust test cases. Improve code quality and ensure reliable software with practical testing strategies.
Explain Unit Testing in .NET API
Jul 03, 2024.
Explore effective strategies for unit testing in .NET API development. Learn essential techniques like test-driven development (TDD), utilizing NUnit or xUnit frameworks, mocking dependencies, and ensuring robustness through integration testing.
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.
Unit testing in C# .Net Core using NUnit
Aug 22, 2023.
Unit testing in C# with NUnit in .NET Core involves using the NUnit testing framework to create and run unit tests for your C# code within a .NET Core application. NUnit is a popular testing framework that provides a convenient and structured way to verify the correctness of individual units of code, such as methods and functions, in isolation from the rest of the application.
Develop A Simple Mock Server
Feb 20, 2023.
This article will teach you how to develop a mock server simply and quickly.
Easily Use MockAPI.io With Angular 14
Sep 18, 2022.
In this post, we will use MockAPI.io to create mock endpoints and testing from an Angular 14 application.
Python Faker Library
Jan 17, 2022.
The article explains how to generate fake data using Python Faker Library which can be extremely useful in writing integration test cases as well as in Data Science projects also
How To Mock And Write Unit Test For API Calls In The React Application
Sep 07, 2021.
In this article, you are going to learn about how to mock API calls and write unit test for API call using fetch-mock in React application.
Unit Testing File Upload in Angular
Jul 25, 2021.
Learn to unit test file uploads in Angular by mocking the 'files' property and simulating change events for robust component testing.
How To integrate Dependency Injection In Azure Functions
Jan 05, 2021.
Learn how to integrate Dependency Injection in Azure Functions, creating HTTP trigger functions, and injecting service objects using DI. Understand the Dependency Injection pattern, steps to add DI in Azure Functions, and its similarity with ASP.NET Core. Follow a step-by-step guide to create functions.
TDD (Test Driven Development) Using MSTest
Dec 10, 2020.
Test Driven Development (TDD) using MSTest involves writing tests before code. With MSTest, developers create automated unit tests to validate small units of code. This iterative process ensures functionality, improves code quality, and facilitates refactoring.
Create a .NET Core API Application
Apr 15, 2020.
In this article, you will learn about .NET Core and how to create a .NET Core API Application.
Mock API Response Using Azure API Management
Aug 20, 2019.
Without having backend, we can implement and test the API instance and send real responses. In this article, let us see how.
Stub Vs Fake Vs Spy Vs Mock
Jul 28, 2019.
In this article, you will learn about the differences between stub, fake, spy, and mock. All of these concepts are mainly used to replace the code dependencies with some alternatives so, that we can concentrate on the unit we are testing while writing in-memory tests.
CRUD Operations Unit Testing In ASP.NET Core Web API With xUnit
Nov 02, 2018.
This article will demonstrate how to write Unit Test Cases for CRUD operations in Asp.Net Core Web API with the xUnit project. In this demonstration, we will write the Unit Test Cases for CRUD (CREATE, READ, UPDATE, and DELETE) operations.
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).
WCF Service Unit Tests Using NUnit With Rhino Mocks And Entity Framework
Nov 22, 2016.
In this article, you will learn how to run WCF Service Unit Tests using NUnit, with Rhino Mocks and Entity Framework.
Understand Stub, Mock and Fake in Unit Testing
Jun 26, 2014.
In this article we will understand the three very important concepts called Stub, Mock and Fake in terms of unit testing and will see how they are used depending on scenario.
Unit Test Using Mock Object in Dependency Injection
Jun 23, 2014.
In this article, we will explain how to perform unit tests with mock objects in dependency injection scenarios. Enhance your testing process by isolating dependencies and simulating their behavior, facilitating efficient and reliable code testing.
Fundamentals of Unit Testing: Unit Testing of IOC Code
May 10, 2014.
Learn essential unit testing principles applied to the Inversion of Control (IoC) code. Master techniques for testing IoC setup, dependencies, and configurations. Boost software quality with robust testing practices tailored to IoC containers.
Fundamentals of Unit Testing: Understand Mock Object in Unit Testing
May 04, 2014.
Learn unit testing fundamentals with a focus on mocking using the Moq framework in Visual Studio. Explore how mock objects simulate dependencies, ensuring isolated testing environments. Master essential techniques like lambda expressions and the Setup() method for efficient unit tests in distributed team projects.
Fundamentals of Unit Testing: Don’t Test Your Private Method
May 01, 2014.
In this article, we will discuss the very controversial and important topic of whether the testing of a private method or private function is ethical.
$httpBackend Service in AngularJS
Mar 06, 2014.
This article introduces the $httpBackend Service in AngularJS.
Unit Testing Async Marked Methods Using Mock Library
Jan 06, 2014.
This article will provides you with a solution to the problem of using Nunit to do unit testing of a method marked with async.
Mock Testing Using Visual Studio 2012
Jul 15, 2013.
Mock testing is new feature in Visual studio 2012. which uses 1. Stub 2. Shims. Today I am going to discus about the stub.
Rhino MockRepository Concrete vs Static Usage
Jun 12, 2013.
In this article we’ll see difference between usage of MockRepository object initialization vs using Static functions to create and setup the mock/stubs.