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

Enhance test specifications and support classes for testing read models #157

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

condron
Copy link
Contributor

@condron condron commented Jun 24, 2024

Adds test specifications and support classes for ReadModel testing

@condron condron requested a review from a team as a code owner June 24, 2024 18:52
@condron condron changed the title add connected and disposed guards to mock repo methods Enforce disposed and other state guards in MockRepo and TestQueue Jun 24, 2024
@condron condron force-pushed the condron-mock-store-dispose-gaurds branch 2 times, most recently from e0fed2d to 0cdb193 Compare June 24, 2024 20:10
@condron condron self-assigned this Jul 10, 2024
@condron condron changed the title Enforce disposed and other state guards in MockRepo and TestQueue Enhance test facilities and fixtures Jul 10, 2024
@condron condron force-pushed the condron-mock-store-dispose-gaurds branch from 459e103 to 73503d8 Compare July 10, 2024 01:33
Copy link
Contributor

@joshkempner joshkempner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall I like the approach a lot.

Some small things:

  1. We should put XML comments on the new public classes & their public and protected methods/properties. I can help with that effort if necessary.
  2. We had discussed moving ReadModelProperty into ReactiveDomain.Testing. Is there a reason to avoid doing that in this PR, or did it just slip through the cracks?

@condron
Copy link
Contributor Author

condron commented Jul 10, 2024

Moving read model property triggers a shit storm of dependency changes and ties things to windows only versions

@condron
Copy link
Contributor Author

condron commented Jul 10, 2024

Yes on the xml comments, help would be appreciated

@joshkempner
Copy link
Contributor

Yes on the xml comments, help would be appreciated

OK, I'll work on it this afternoon.

@condron condron force-pushed the condron-mock-store-dispose-gaurds branch 3 times, most recently from 0e2988d to 8dcc755 Compare July 10, 2024 19:23
@joshkempner joshkempner force-pushed the condron-mock-store-dispose-gaurds branch from e45631b to 4fd9694 Compare July 10, 2024 20:15
@condron condron force-pushed the condron-mock-store-dispose-gaurds branch from 4fd9694 to c74f21c Compare July 10, 2024 20:48
Copy link
Contributor

@joshkempner joshkempner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@condron condron force-pushed the condron-mock-store-dispose-gaurds branch from c74f21c to c805db9 Compare July 10, 2024 21:25
@condron condron changed the title Enhance test facilities and fixtures Enhance test specifications and support classes for testing read models Jul 10, 2024
@joshkempner joshkempner merged commit 521018e into master Jul 10, 2024
4 checks passed
@joshkempner joshkempner deleted the condron-mock-store-dispose-gaurds branch July 10, 2024 21:32
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