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
I'm resolving the Test Method parameters using a combination of AutoFixture and an IoC Container.
To make this work, I need to be able to customize an AutoFixture instance, to include among other things, my customization that uses the IoC container to create the requested instance.
In previous versions of Fixie I was able to do this using the Func<> based method to fill the test methods parameters. But now, I can only add ParameterSource type, that Fixie then instanciate by itself. The problem is that now I lost the ability to inject my customized object factory.
Is it possible to add back the Func<> based api to define a parameter source?
The text was updated successfully, but these errors were encountered:
When I switched from lambda-based to Type-based customization of the many .Wrap(...) methods and Parameter Sources, I did it in a way that forced me to stop supporting the lambda alternatives. Today, I realized how to finally support both. .Wrap(...) and ParameterSource.Add(...) now all come in three flavors:
Parameters
.Add<MyTypeName>();
Parameters
.Add(new MyTypeName());//Meaning your constructors could now take in arguments.
Parameters
.Add(method =>{//return zero or more object[ ] arrays.});
Hey Patrick,
I'm resolving the Test Method parameters using a combination of AutoFixture and an IoC Container.
To make this work, I need to be able to customize an AutoFixture instance, to include among other things, my customization that uses the IoC container to create the requested instance.
In previous versions of Fixie I was able to do this using the
Func<>
based method to fill the test methods parameters. But now, I can only addParameterSource
type, that Fixie then instanciate by itself. The problem is that now I lost the ability to inject my customized object factory.Is it possible to add back the
Func<>
based api to define a parameter source?The text was updated successfully, but these errors were encountered: