Skip to content

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

@wizofaus

Description

@wizofaus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions