Exemple #1
0
 public TransactClientTester(
     TransactClientConfiguration configuration        = null,
     TransactMessageEncoder encoder                   = null,
     TransactMessageResponseDecoder decoder           = null,
     AddRecipientEncoder addReciepientEncoder         = null,
     AddRecipientResponseDecoder addReciepientDecoder = null,
     SelectRecipientDataEncoder selectEncoder         = null,
     SelectRecipientDataResponseDecoder selectDecoder = null,
     LoginEncoder loginEncoder                              = null,
     LoginResponseDecoder loginDecoder                      = null,
     SendMailingEncoder sendMailingEncoder                  = null,
     SendMailingResponseDecoder sendMailingDecoder          = null,
     Func <ISilverpopCommunicationsClient> silverpopFactory = null)
     : base(
         configuration ?? new TransactClientConfiguration(),
         encoder ?? new TransactMessageEncoder(),
         decoder ?? new TransactMessageResponseDecoder(),
         addReciepientEncoder ?? new AddRecipientEncoder(),
         addReciepientDecoder ?? new AddRecipientResponseDecoder(),
         selectEncoder ?? new SelectRecipientDataEncoder(),
         selectDecoder ?? new SelectRecipientDataResponseDecoder(),
         loginEncoder ?? new LoginEncoder(),
         loginDecoder ?? new LoginResponseDecoder(),
         sendMailingEncoder ?? new SendMailingEncoder(),
         sendMailingDecoder ?? new SendMailingResponseDecoder(),
         silverpopFactory ?? (() => Mock.Of <ISilverpopCommunicationsClient>()))
 {
 }
Exemple #2
0
 public TransactClient(
     TransactClientConfiguration configuration,
     TransactMessageEncoder encoder,
     TransactMessageResponseDecoder decoder,
     AddRecipientEncoder addRecipientEncoder,
     AddRecipientResponseDecoder addRecipientDecoder,
     SelectRecipientDataEncoder selectRecipientEncoder,
     SelectRecipientDataResponseDecoder selectRecipientDecoder,
     LoginEncoder loginEncoder,
     LoginResponseDecoder loginDecoder,
     SendMailingEncoder sendMailingEncoder,
     SendMailingResponseDecoder sendMailingDecoder,
     Func <ISilverpopCommunicationsClient> silverpopFactory)
 {
     Configuration           = configuration;
     _encoder                = encoder;
     _decoder                = decoder;
     _addRecipientEncoder    = addRecipientEncoder;
     _addRecipientDecoder    = addRecipientDecoder;
     _selectRecipientEncoder = selectRecipientEncoder;
     _selectRecipientDecoder = selectRecipientDecoder;
     _loginEncoder           = loginEncoder;
     _loginDecoder           = loginDecoder;
     _sendMailingEncoder     = sendMailingEncoder;
     _sendMailingDecoder     = sendMailingDecoder;
     _silverpopFactory       = silverpopFactory;
 }