-
The problem is when I try to mock any method of the repository, for example `GetFirstOne`, it always return `null` during debugging.
C# mocking generic repository, unitOfWork and applying filter ex…
-
# 3 ways to check the object passed to mocks with Moq in C# | Code4IT
Code4IT - a blog for .NET enthusiasts, Azure lovers, and Backend developers
[https://www.code4it.dev/blog/check-objects-called-m…
-
This is a placeholder that we need to sort out how Auth and auth tokens work in MoQ.
Requirements:
1. Can control what users can connect to a relay.
2. Can control if a user can publish to a …
-
This applies to both Accessibility Insights for Windows and Axe.Windows, filing here for tracking of both.
**Is your feature request related to a problem? Please describe.**
Since 4.20.x, Moq has …
-
Having a wonderful time trying to implement the above title for Unit testing. I was curious if there is any documentation or sample to aid in this endeavor.
-
-
I have a method which takes in a request object. The request object has a enum property.
Before the passed in request object is sent to the actual service, we change the enum value. i.e.
Passed enum…
-
I'm upgrading a project from .NET 6 to 8, and also CSharpier as part of that. Previously, we sorted using directives with `dotnet format style` and the `dotnet_separate_import_directive_groups` option…
-
### Description
For using Moq, I share with you how to implement this solution using Moq to test Azure Function Isolated .Net 8
```
public static HttpRequestData CreateMockHttpRequestData(string …
-
.NET version: .NET 6
Test Context: XUnit
Moq: 4.8.12
Summary:
Following these examples
SO: https://stackoverflow.com/questions/45558470/how-do-i-go-about-unit-testing-with-entity-framework-and-…