Skip to content

Customize properties Values #1408

Closed Answered by aivascu
Jimmy-Ahmed asked this question in Q&A
Discussion options

You must be logged in to vote

@Jimmy-Ahmed there is no built-in way to implement this using AutoFixture, but I think you might be able to pass an array of delegates that can "pipe" the With expressions.
What exactly are you trying to accomplish? Feels like you actually want to use the object builder.

var mc = fixture.Build<DeploymentDetails>()
                .With(x => x.Abc, "dsfsf564564")
                .With(x => x.Def, "ddds")
                .With(x => x.Tyr, "weewwe")
                .With(x => x.Nhgf, "aaddw")
                .Create();

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jimmy-Ahmed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants