AutoFixture makes no assumptions about how to instantiate interfaces, but you can pretty easily resolve the behavior you're looking for . for integers:
fixture.Register(() => fixture.CreateMany<int>());
In the upcoming AutoFixture 2.1, you can also just enable conventions for different collections with a single method call:
var fixture = new Fixture().Customize(new MultipleCustomization());
Regarding deprecation of the Register method, note that this is only one overload of the Register method, which is marked as deprecated. The Inject method is a direct replacement - it has the same signature and usage, just a different name. All other Registry overloads are not obsolete and should be used as โdocumentedโ.
source share