Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recipe for easy testing of event projections #1615

Closed
jeremydmiller opened this issue Nov 18, 2020 · 1 comment
Closed

Recipe for easy testing of event projections #1615

jeremydmiller opened this issue Nov 18, 2020 · 1 comment
Assignees
Milestone

Comments

@jeremydmiller
Copy link
Member

This has come up a couple times. Might be mostly documentation, but let's think about it.

@jeremydmiller
Copy link
Member Author

I do actually have some ideas here. Wanna do something similar to what Alba does for testing HTTP endpoints -- which was lifted out of FubuMVC's old mechanism for testing its own behavior.

What we need:

  • Reusable harness based on an IHost setup
  • Harness can wipe out event state and the related state for projected documents on demand
  • Allows you to very quickly throw events at new streams. Let the user define multiple batches of events to simulate capturing events at different times
  • Declarative assertions for a document being deleted, existing, or being archived
  • Declarative helper to assert data changes on a persisted document, but let's you mostly use the assertion library of your choice
  • Declarative helper to assert that a document w/ a given identity & type exists or was deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant