public Attachment InitAttachment(net.Attachment tempAttachment) 
        { 
            this.Stream = tempAttachment.ContentStream;
            this.Name = tempAttachment.Name;
            this.ContentTransferEncoding = tempAttachment.TransferEncoding;
            this.ContentType = tempAttachment.ContentType;
            this.MediaType = tempAttachment.ContentType.MediaType;

            return this;
        }
 public override void TestFixtureSetUp()
 {
     var types = new[] { typeof(SmtpException) };
     _exceptionConverter = new ExceptionConverter(types, exception => new MailServiceException(exception));
 }
 public MailWrapper(System.Net.Mail original)
 {
     this.original = original;
 }
 public MailService()
 {
     var types = new[] { typeof(SmtpException) };
     _exceptionConverter = new ExceptionConverter(types, exception => new MailServiceException(exception));
 }