public CheckOutRefService(IEnumerable <IParseable> parseable, Model.CommandLineArgs commandLineArgs, Model.Configuration configuration, ILogger logger, GitAdapter.IGitAdapter gitAdapter) { _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); _commandLineArgs = commandLineArgs ?? throw new ArgumentNullException(nameof(commandLineArgs)); _parseable = parseable ?? throw new ArgumentNullException(nameof(parseable)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _gitAdapter = gitAdapter ?? throw new ArgumentNullException(nameof(gitAdapter)); }
public ServiceProvider(ILogger logger, IEnumerable <Services.IService> services, Model.CommandLineArgs commandLineArgs) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _services = services ?? throw new ArgumentNullException(nameof(services)); _commandLineArgs = commandLineArgs ?? throw new ArgumentNullException(nameof(commandLineArgs)); }