You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixture.Customize<Version>(o => o.FromFactory(CreateVersion)));static Version CreateVersion([Range(0,2)]intmajor,[Range(0,10)]intminor,[Range(0,100)]intpatch){returnnew Version(major, minor, patch);}
Tasks
Confirmed feature idea with maintainers in support forums
More Information
Currently the FromFactory method does not use the usual AutoFixture pipeline, but rather uses the delegate directly to create the new specimen.
Must investigate whether it is viable to allow AutoFixture to generate values and what implications might, changing the implementation, have.
The text was updated successfully, but these errors were encountered:
Description
Allow the use of .NET data annotation attributes to be used when specifying a factory function for a specimen.
Example
Tasks
More Information
Currently the
FromFactory
method does not use the usual AutoFixture pipeline, but rather uses the delegate directly to create the new specimen.Must investigate whether it is viable to allow AutoFixture to generate values and what implications might, changing the implementation, have.
The text was updated successfully, but these errors were encountered: