public void Setup() { _ioSubstitute = Substitute.For <ISystemIO>(); _solutionFileParserSubstitute = Substitute.For <ISolutionFileParser>(); _solutionFactorySubstitute = Substitute.For <ISolutionFactory>(); _reader = new SolutionReader(_ioSubstitute, _solutionFactorySubstitute, _solutionFileParserSubstitute); }
public DotNetLocalPackageProcessor( ISolutionFileParser solutionFileParser, IProjectFileParser projectFileParser, ISettings repositoryFilter, IEnumerable <IDotNetLocalPackagePreprocessor> localPackagePreprocessors) { _solutionFileParser = solutionFileParser; _projectFileParser = projectFileParser; _repositoryFilter = repositoryFilter; _dotNetLocalPackagePreprocessors = localPackagePreprocessors; }
public SolutionReader(ISystemIO io, ISolutionFactory solutionFactory, ISolutionFileParser solutionFileParser) : base(io, SlnFileGlob) { _solutionFactory = solutionFactory ?? throw new ArgumentNullException(nameof(solutionFactory)); _solutionFileParser = solutionFileParser ?? throw new ArgumentNullException(nameof(solutionFileParser)); }