---
title: "Discussion on \"Unit Testing in .NET Core - Mastering Mocking\" | Hashnode"
description: "Discussion on \"Unit Testing in .NET Core - Mastering Mocking\". This is the fifth post in our Unit Testing in .NET Core series! In the previous post, we looked at writing better assertions in our unit tests. In this post, we will explore the concept of mocking in unit testing using xUnit, discuss different types ..."
url: "https://hashnode.com/posts/unit-testing-in-net-core-mastering-mocking/65213e45f69835f35d9bf279"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Unit Testing in .NET Core - Mastering Mocking](https://geothachankary.hashnode.dev/unit-testing-in-net-core-mastering-mocking?utm_source=hashnode&utm_medium=feed)

This is the fifth post in our Unit Testing in .NET Core series! In the previous post, we looked at writing better assertions in our unit tests. In this post, we will explore the concept of mocking in unit testing using xUnit, discuss different types ...

Oct 7, 2023 · 9 min read · geothachankary.hashnode.dev  
Updated Jan 8, 2024  
Read the article

-   [#net-core](https://hashnode.com/tag/net-core)
-   [#xunit](https://hashnode.com/tag/xunit)
-   [#nsubstitute](https://hashnode.com/tag/nsubstitute)
-   [#unit-testing](https://hashnode.com/tag/unit-testing)
-   [#fakeiteasy](https://hashnode.com/tag/fakeiteasy)

## Written by

[Geo J Thachankary](https://hashnode.com/@geothachankary)

@geothachankary · India

  
[View profile](https://hashnode.com/@geothachankary)

Software Developer - Works with .NET Core 👨‍💻

Hey there! I’m a software architect with a decade of experience turning ideas into solutions. My playground? Microsoft .NET technologies, with a deep focus on crafting elegant backend systems using Web APIs. PostgreSQL is my favorite database, though I won’t say no to experimenting with other tools when the occasion calls for it. At work, I dive into the complexities of event-driven microservices (yes, Kafka makes the guest list sometimes). But between you and me, I’ve got a soft spot for the simplicity and stability of a well-built monolith. I’ve dabbled with the clouds—both AWS and Azure—but I keep my feet firmly grounded in pragmatic solutions. When I’m not architecting scalable systems or untangling code spaghetti, you might find me penning down thoughts on .NET, sharing tips, tricks, and lessons learned from the trenches. Welcome to my little corner of the internet!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
