public void Setup()
        {
            _ioSubstitute = Substitute.For <ISystemIO>();
            _solutionFileParserSubstitute = Substitute.For <ISolutionFileParser>();
            _solutionFactorySubstitute    = Substitute.For <ISolutionFactory>();

            _reader = new SolutionReader(_ioSubstitute, _solutionFactorySubstitute, _solutionFileParserSubstitute);
        }
Пример #2
0
 public DotNetLocalPackageProcessor(
     ISolutionFileParser solutionFileParser,
     IProjectFileParser projectFileParser,
     ISettings repositoryFilter,
     IEnumerable <IDotNetLocalPackagePreprocessor> localPackagePreprocessors)
 {
     _solutionFileParser = solutionFileParser;
     _projectFileParser  = projectFileParser;
     _repositoryFilter   = repositoryFilter;
     _dotNetLocalPackagePreprocessors = localPackagePreprocessors;
 }
Пример #3
0
 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));
 }