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!
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 offixture.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!