public PackageDiffCommandlineTool(
     ITextFileReader reader,
     IPackageDiffGenerator generator,
     IPackageDiffReporter reporter,
     IPackageDiffItemWriter writer
     )
 {
     _reader    = reader;
     _generator = generator;
     _reporter  = reporter;
     _writer    = writer;
 }
Exemplo n.º 2
0
 private IPackageDiffCommandlineTool Create(
     ITextFileReader reader          = null,
     IPackageDiffGenerator generator = null,
     IPackageDiffReporter reporter   = null,
     IPackageDiffItemWriter writer   = null)
 {
     return(new PackageDiffCommandlineTool(
                reader ?? Substitute.For <ITextFileReader>(),
                generator ?? Substitute.For <IPackageDiffGenerator>(),
                reporter ?? Substitute.For <IPackageDiffReporter>(),
                writer ?? Substitute.For <IPackageDiffItemWriter>()
                ));
 }