FlexTradeUKLtd / jfixture

JFixture is an open source library based on the popular .NET library, AutoFixture
MIT License
105 stars 22 forks source link

Is there a similar feature of autofixture build with? #66

Open peterhe2000 opened 3 years ago

peterhe2000 commented 3 years ago

I hope to build a test model with a field from me using jFixture. I could do this in autofixture. var directDebitModel = _fixture.Build<DirectDebitModel>() .With(a => a.BSB, 'MyBSB') .Create();

Is there something similar in JFixture?

TWiStErRob commented 3 years ago

I think it's fixture.collections().something() You might need to pass in a generic Type like this: new SpecimenType<List<DIrectDebitModel>>(){}.