Пример #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>()))
 {
 }
Пример #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;
 }
Пример #3
0
 public TransactClient(
     TransactClientConfiguration configuration,
     TransactMessageEncoder encoder,
     TransactMessageResponseDecoder decoder,
     Func <ISilverpopCommunicationsClient> silverpopFactory)
 {
     Configuration     = configuration;
     _encoder          = encoder;
     _decoder          = decoder;
     _silverpopFactory = silverpopFactory;
 }
Пример #4
0
 public TransactClientTester(
     TransactClientConfiguration configuration = null,
     TransactMessageEncoder encoder            = null,
     TransactMessageResponseDecoder decoder    = null,
     Func <ISilverpopCommunicationsClient> silverpopFactory = null)
     : base(
         configuration ?? new TransactClientConfiguration(),
         encoder ?? new TransactMessageEncoder(),
         decoder ?? new TransactMessageResponseDecoder(),
         silverpopFactory ?? (() => Mock.Of <ISilverpopCommunicationsClient>()))
 {
 }