private void HandleNew(NewOptions options) { container.RegisterInstance(options); container.RegisterInstance <Options>(options); IVerbHandler handler = container.Resolve <NewHandler>(); handler.Run(); }
private void HandleGenerate(GenerateOptions options) { container.RegisterInstance(options); container.RegisterInstance <Options>(options); IVerbHandler handler = container.Resolve <GenerateHandler>(); handler.Run(); }
private void HandleNotParsed(IEnumerable <Error> errors) { IVerbHandler handler = container.Resolve <UnknownVerbHandler>(); handler.Run(); }