예제 #1
0
 public EmptyReportWriter(IHeaderWriter headerWriter, string message)
 {
     if (headerWriter == null)
     {
         throw new ArgumentNullException("headerWriter");
     }
     this.headerWriter = headerWriter;
     this.message      = message;
 }
예제 #2
0
            public ReportWriter(IHeaderWriter headerWriter, IBodyWriter bodyWriter)
            {
                if (headerWriter == null)
                {
                    throw new ArgumentNullException("headerWriter");
                }
                if (bodyWriter == null)
                {
                    throw new ArgumentNullException("bodyWriter");
                }

                this.headerWriter = headerWriter;
                this.bodyWriter   = bodyWriter;
            }