Example #1
0
        public Attachments(IConnection connection, AttachmentResponseFactory attachmentResponseFactory, DocumentHeaderResponseFactory documentHeaderResponseFactory)
        {
            Ensure.That(connection, "connection").IsNotNull();
            Ensure.That(attachmentResponseFactory, "attachmentResponseFactory").IsNotNull();
            Ensure.That(documentHeaderResponseFactory, "documentHeaderResponseFactory").IsNotNull();

            Connection = connection;
            AttachmentResponseFactory = attachmentResponseFactory;
            DocumentHeaderResponseFactory = documentHeaderResponseFactory;
        }
Example #2
0
        public Documents(IConnection connection, DocumentResponseFactory documentReponseFactory, DocumentHeaderResponseFactory documentHeaderResponseFactory, BulkResponseFactory bulkResponseFactory)
        {
            Ensure.That(connection, "connection").IsNotNull();
            Ensure.That(documentReponseFactory, "documentReponseFactory").IsNotNull();
            Ensure.That(documentHeaderResponseFactory, "documentHeaderResponseFactory").IsNotNull();
            Ensure.That(bulkResponseFactory, "bulkResponseFactory").IsNotNull();

            Connection = connection;
            DocumentReponseFactory = documentReponseFactory;
            DocumentHeaderReponseFactory = documentHeaderResponseFactory;
            BulkReponseFactory = bulkResponseFactory;
        }