Skip to content

Allow passing a custom StreamNameBuilder into MockRepositorySpecification #134

@dealproc

Description

@dealproc

In my code, I am working within a shared core. As part of the testing, I need to write tests to ensure ACLs are working accurately within the same ESDB instance. The problem comes when I need to do [Domain1].[Aggregate] and [Domain2].[Aggregate], as the default PrefixedCamelCaseStreamNameBuilder does not properly build the stream names to support multiple domains.

For now, I am going to cut & paste the code for MockRepositorySpecification and adjust to my needs. With that said, if there could be an adjustment to the constructor, providing an overload which allows passing a preferred IStreamNameBuilder to allow for testing scenarios such as these. Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions