Is there a way to set a TypeRegistrar on a CommandAppTester #461
-
I have a setup using a registrar, for dependency injection. private static int Main(string[] args)
{
var registrar = BuildRegistrar();
var app = new CommandApp(registrar);
app.Configure(ConfigureApp);
return app.Run(args);
} Now, I'd like to test some of my commands using the Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@nils-a I took a quick look at it and you are correct. Should be easily fixed though in the Would you want to submit a PR for this? Otherwise I might be able to do it later this week. |
Beta Was this translation helpful? Give feedback.
@nils-a I took a quick look at it and you are correct. Should be easily fixed though in the
CommandAppTester
if we add aITypeRegistrar
property which we later inject into the createdCommandApp
.Would you want to submit a PR for this? Otherwise I might be able to do it later this week.