Skip to content

docs: add .NET actor unit testing guide#5230

Open
wynx1123 wants to merge 1 commit into
dapr:v1.18from
wynx1123:docs/actor-unit-testing-dotnet
Open

docs: add .NET actor unit testing guide#5230
wynx1123 wants to merge 1 commit into
dapr:v1.18from
wynx1123:docs/actor-unit-testing-dotnet

Conversation

@wynx1123

Copy link
Copy Markdown

Summary

Adds a comprehensive Unit Testing Dapr Actors guide for the .NET SDK docs. Moved from dapr/dotnet-sdk#1861 per @WhitWaldo's suggestion.

Covers: unit testing with ActorHost, mocking StateManager/ProxyFactory, timer/reminder tests, integration testing, and best practices.

@WhitWaldo -- as promised! Happy to adjust anything.

Add dotnet-actors-unit-testing.md covering:
- Unit testing actors in isolation with lightweight ActorHost
- Mocking IActorStateManager and IActorProxyFactory
- Testing timers and reminders
- Integration testing with Dapr sidecar
- Best practices for dependency injection and test isolation

Co-authored-by: wynx1123 <wynx1123@users.noreply.github.com>
Signed-off-by: wynx1123 <wynx1123@users.noreply.github.com>
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