Skip to content

Add provider-first property and scope migration helpers#81

Merged
cwinland merged 5 commits intomasterfrom
property-state-scope-helpers
Apr 16, 2026
Merged

Add provider-first property and scope migration helpers#81
cwinland merged 5 commits intomasterfrom
property-state-scope-helpers

Conversation

@cwinland
Copy link
Copy Markdown
Owner

Summary

  • add provider-first property state and property setter capture helpers as a migration path away from simple SetupAllProperties() and setter-interception patterns
  • expand typed IServiceProvider and IServiceScope helper coverage, including owned lifetime tracking, provider-backed scope registration, and the corresponding disposal model updates on Mocker
  • extend analyzer migration support with FMOQ0021 plus broader FMOQ0013 detection and code fixes for typed provider, scope, and context-sensitive scope-factory migration cases
  • add runtime tests, analyzer/code-fix tests, sample coverage, and updated migration/testing docs for the new helper surfaces

Validation

  • dotnet test .\FastMoq.Analyzers.Tests\FastMoq.Analyzers.Tests.csproj --no-restore
  • dotnet test .\FastMoq.Tests\FastMoq.Tests.csproj --no-restore

@cwinland cwinland merged commit 25db6a8 into master Apr 16, 2026
7 checks passed
@cwinland cwinland deleted the property-state-scope-helpers branch April 16, 2026 22:54
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.

1 participant