Returning value that was passed into a method Understanding How to Return Values Passed into a Method in Programming In programming a method is a block of code that performs a specific task Often you will w 2 min read 09-10-2024 3
Moq Setup() vs SetupGet() Understanding Moq Setup vs Setup Get When it comes to unit testing in NET the Moq library is an essential tool that many developers rely on to create mock objec 3 min read 08-10-2024 6
Mocking EF DbContext with Moq Mocking Entity Framework Db Context with Moq A Comprehensive Guide Testing your applications logic without relying on an actual database can be a huge time save 3 min read 07-10-2024 5
TypeLoadException using Moq on internal interface in signed assembly Type Load Exception The Curse of Internal Interfaces and Signed Assemblies in Moq Mocking frameworks are invaluable for unit testing allowing us to isolate our 2 min read 07-10-2024 3
Nunit testing with Mock. Instance of Interface Mastering Nunit Testing with Mocks Working with Interface Instances Unit testing is an essential practice for building robust and maintainable software When dea 2 min read 07-10-2024 5
Unit Test Controller mocking ISession Mocking I Session in Unit Tests A Guide for ASP NET Core Controllers In the world of ASP NET Core development unit testing is crucial for ensuring code quality 2 min read 06-10-2024 10
Mock ServiceProvider GetServices Mastering Mock Service Providers A Deep Dive into Get Services Mocking is an essential technique for unit testing allowing developers to isolate and test specif 2 min read 06-10-2024 9
Mocking and unit testing graphql-dotnet Mastering Graph QL dotnet Unit Testing with Mocking Graph QL has become a popular choice for building APIs due to its flexibility and efficiency When working wi 3 min read 04-10-2024 10
Mock of `HttpMessageHandler` did not return a response message in xunit Mocking Http Message Handler and Handling Missing Response Messages in x Unit Tests Testing code that interacts with external services like HTTP APIs can be cha 3 min read 04-10-2024 8
Mocked DbContext throws exception when execute async operations Understanding Mocked Db Context Exceptions During Async Operations When working with Entity Framework Core in a NET application developers often use the Db Cont 3 min read 29-09-2024 7
Create a function that takes method name and verify if that method was called How to Create a Function to Verify Method Calls in Python In software development especially when working with object oriented programming it is common to want 2 min read 26-09-2024 19
Mocking created object which then added to dictionary Mocking Created Objects Added to a Dictionary A Comprehensive Guide In the world of software testing particularly in Python mocking is a powerful technique used 3 min read 23-09-2024 19
Mocking HttpClient in unit tests Mocking Http Client in Unit Tests A Practical Guide When writing unit tests you want to isolate the code under test from external dependencies This is where moc 3 min read 06-09-2024 21
Moq difference between Verify() and Setup()...VerifyAll() Understanding Moqs Verify Setup and Verify All Methods Moq is a popular mocking framework in NET that helps developers write unit tests by providing a way to si 3 min read 05-09-2024 17
Moq IDBContextFactory with In-Memory EF Core Mocking I Db Context Factory with In Memory EF Core for Unit Testing When writing unit tests for code that interacts with a database its crucial to isolate the 4 min read 04-09-2024 14
Mock `TableClient.QueryAsync()` for Unit Test Mocking Table Client Query Async for Unit Tests A Comprehensive Guide Mocking Azure Table Storage operations is essential for unit testing your code This articl 2 min read 03-09-2024 78
Mock constructor arguments of inherited classes which differ from parent class costructor arguments Mocking Constructor Arguments in Inherited Classes with Different Constructor Signatures When working with inheritance in unit testing you often encounter situa 3 min read 31-08-2024 20
Refernce to RouteValueDictionary claims it is defined in System.Web but could not be found Reference to Route Value Dictionary claims it is defined in System Web but could not be found A Common ASP NET MVC Testing Headache This article will address a 2 min read 30-08-2024 17
How to set up the call to extension method of DataLakeDirectoryClient object of Azure.Storage.Files.DataLake c# library? Mocking Extension Methods and Protected Members in Azure Data Lake Storage Gen2 with C This article delves into the complexities of mocking extension methods an 4 min read 30-08-2024 19
Mocked Function using Moq being called in BUnit test Mastering Mocked Functions in B Unit Tests with Moq A Comprehensive Guide This article delves into the intricacies of mocking functions within your B Unit tests 2 min read 28-08-2024 22