Skip to content

MockAsynchronousMethods: retarget net10.0, add plain-Task mock and Verify assertion - #2090

Merged
CodeMazeBlog merged 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/70683-moq-async-mock
Aug 14, 2026
Merged

MockAsynchronousMethods: retarget net10.0, add plain-Task mock and Verify assertion#2090
CodeMazeBlog merged 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/70683-moq-async-mock

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Retargets MockAsynchronousMethods sample to net10.0 (Moq 4.20.72, xUnit 2.9.3). Adds a plain-Task-returning SaveAsync method to IFakeDbArticles/ArticleRepository plus a mock helper and test demonstrating Returns(Task.CompletedTask) and Verify(), matching the SEO rewrite of csharp-mock-asynchronous-methods-using-moq.

@CodeMazeBlog
CodeMazeBlog merged commit 7f32849 into CodeMazeBlog:main Aug 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants