Skip to content

How can I customize an entity further after applying EntityCustomization? #10

@bardock

Description

@bardock

Hi Alex,

I've just faced a problem that I'd like to share with you.

I have a DefaultCustomization composed by your EntityCustomization and other customizations that are used in all my tests. Then at each test I add more customizations, applying them after the default customizations thus I could override them.

If I use fixture.Customize<Entity>(b => b.With(...)), it inserts a specimen builder at the top of fixture.Customizations, thus it overrides the EntityCustomization that I already applied with my default customizations.

How are you handling these kind of scenarios where you want some of your default customizations be applied before and some after the test's specific customizations?

I was thinking that maybe we could use an AutoFixture's Behaviour in order to avoid that the EntityCustomization logic be overridden by customizations.

Thank you very much!

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