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.
Answered by
patriksvensson
Jun 21, 2021
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.
2 replies
Answer selected by
nils-a
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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.