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

Shouldn't be process-wide persistent by default #13

Open
wizofaus opened this issue Mar 16, 2016 · 0 comments
Open

Shouldn't be process-wide persistent by default #13

wizofaus opened this issue Mar 16, 2016 · 0 comments

Comments

@wizofaus
Copy link

Given that Mock repositories are designed for use by unit tests, and MSTest runs unit tests multi-threaded, you get some quite unexpected behavior if you don't pass in "true" for the constructor.
I'd rather see the default behavior be that repository data was persistent per thread, and require a specific option if you wanted it to be process-wide persistent. Either that, or the default behavior should not use a static field-backed datastore.

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

No branches or pull requests

1 participant