Example #1
0
 public TeamCityWriterFacade(
     [NotNull] IServiceMessageProcessor processor,
     [NotNull] ITeamCityBlockWriter <ITeamCityWriter> blockWriter,
     [NotNull] ITeamCityCompilationBlockWriter <ITeamCityWriter> compilationWriter,
     [NotNull] ITeamCityTestsWriter testsWriter,
     [NotNull] ITeamCityMessageWriter messageWriter,
     [NotNull] ITeamCityArtifactsWriter artifactsWriter,
     [NotNull] ITeamCityBuildStatusWriter statusWriter,
     [NotNull] ITeamCityFlowWriter <ITeamCityWriter> flowWriter,
     [NotNull] IDisposable disposeCallback)
 {
     if (processor == null)
     {
         throw new ArgumentNullException(nameof(processor));
     }
     if (blockWriter == null)
     {
         throw new ArgumentNullException(nameof(blockWriter));
     }
     if (compilationWriter == null)
     {
         throw new ArgumentNullException(nameof(compilationWriter));
     }
     if (testsWriter == null)
     {
         throw new ArgumentNullException(nameof(testsWriter));
     }
     if (messageWriter == null)
     {
         throw new ArgumentNullException(nameof(messageWriter));
     }
     if (artifactsWriter == null)
     {
         throw new ArgumentNullException(nameof(artifactsWriter));
     }
     if (statusWriter == null)
     {
         throw new ArgumentNullException(nameof(statusWriter));
     }
     if (flowWriter == null)
     {
         throw new ArgumentNullException(nameof(flowWriter));
     }
     if (disposeCallback == null)
     {
         throw new ArgumentNullException(nameof(disposeCallback));
     }
     _processor         = processor;
     _blockWriter       = blockWriter;
     _compilationWriter = compilationWriter;
     _testsWriter       = testsWriter;
     _messageWriter     = messageWriter;
     _artifactsWriter   = artifactsWriter;
     _statusWriter      = statusWriter;
     _flowWriter        = flowWriter;
     _dispose           = disposeCallback;
 }
 public TeamCityWriterFacade([NotNull] IServiceMessageProcessor processor,
                             [NotNull] ITeamCityBlockWriter <ITeamCityWriter> blockWriter,
                             [NotNull] ITeamCityCompilationBlockWriter <ITeamCityWriter> compilationWriter,
                             [NotNull] ITeamCityTestsWriter testsWriter,
                             [NotNull] ITeamCityMessageWriter messageWriter,
                             [NotNull] ITeamCityArtifactsWriter artifactsWriter,
                             [NotNull] ITeamCityBuildStatusWriter statusWriter,
                             [NotNull] ITeamCityFlowWriter <ITeamCityWriter> flowWriter,
                             [NotNull] IDisposable disposeCallback)
 {
     myProcessor         = processor;
     myBlockWriter       = blockWriter;
     myCompilationWriter = compilationWriter;
     myTestsWriter       = testsWriter;
     myMessageWriter     = messageWriter;
     myArtifactsWriter   = artifactsWriter;
     myStatusWriter      = statusWriter;
     myFlowWriter        = flowWriter;
     myDispose           = disposeCallback;
 }