The new version of AutoFixture has attribute [Greedy] to select the constructor with that has the most arguments while creating an instance of the related type. There are also other possibilities like [Modest]. See them for XUnit from the repository.
1 | public class Example |