private IISOptions Options(string commandLine) { var optionsParser = new ArgumentsParser(log, plugins, commandLine.Split(' ')); var arguments = new ArgumentsService(log, optionsParser); var x = new IISOptionsFactory(log, iis, helper, arguments, userRoleService); return(x.Default().Result); }
private IISOptions?Options(string commandLine) { var optionsParser = new ArgumentsParser(log, plugins, commandLine.Split(' ')); var input = new mock.InputService(new()); var secretService = new SecretServiceManager(new mock.SecretService(), input, log); var argsInput = new ArgumentsInputService(log, optionsParser, input, secretService); var args = new MainArguments(); var x = new IISOptionsFactory(log, helper, args, argsInput, userRoleService); return(x.Default().Result); }