Esempio n. 1
0
 public virtual void ClearBasicShipmentsettings(BaseShipment shipment)
 {
     shipment.Certificate  = null;
     shipment.EndpointName = null;
     shipment.Password     = null;
     shipment.Username     = null;
 }
        public void Test(BaseShipment shipment)
        {
            var client = GenerateProxy(shipment);

            OperationContext = "ReceiptAgencyTest";
            client.Test();
        }
Esempio n. 3
0
        public void Test(BaseShipment shipment)
        {
            var client = GenerateProxy(shipment);

            OperationContext = "IntStreamedTest";
            client.Test();
        }
        public override void SetBasicShipmentSettings(BaseShipment shipment)
        {
            base.SetBasicShipmentSettings(shipment);
            string spiThumbprint = System.Configuration.ConfigurationManager.AppSettings["SpiCertificateThumbprint"];

            ((GetTokenByAuthorizationCodeShipment)shipment).SpiCertificate = GetCertificateByThumbPrint(spiThumbprint);
        }
        public void TestArchiveCommonAgency(BaseShipment shipment)
        {
            var client = GenerateArchiveCommonProxy(shipment.EndpointName, shipment.Certificate);

            OperationContext = "ArchiveCommonAgencyTest";
            client.Test();
        }
        public void TestReporteeArchiveExternalStreamed(BaseShipment shipment)
        {
            var client = GenerateReporteeArchiveStreamedProxy(shipment.EndpointName, shipment.Certificate);

            OperationContext = "RAStreamedTest";
            client.Test();
        }
Esempio n. 7
0
        public void TestSoArchiveStreamed(BaseShipment shipment)
        {
            var client = GenerateSoArchiveStreamedProxy(shipment.EndpointName, shipment.Certificate);

            OperationContext = "SOAStreamedTest";
            client.Test();
        }
        public void Test(BaseShipment shipment)
        {
            var client = GenerateProxy(shipment.EndpointName, shipment.Certificate);

            OperationContext = "IntStreamedTest";
            client.Test();
        }
Esempio n. 9
0
 public virtual void SetBasicShipmentSettings(BaseShipment shipment)
 {
     shipment.Certificate  = SelectedCertificate;
     shipment.EndpointName = SelectedEndpointName;
     shipment.Username     = SystemUsername;
     shipment.Password     = SystemPassword;
 }
Esempio n. 10
0
        public void Test(BaseShipment Shipment)
        {
            var client = GenerateProxy(Shipment);

            OperationContext = "CaseAgencyTest";
            client.Test();
        }
        public void Test(BaseShipment shipment)
        {
            var client = GenerateAuthorizationTokenProxy(shipment.EndpointName, shipment.Certificate);

            OperationContext = "AuthAccessTokenTest";
            client.Test();
        }
        public void Test(BaseShipment shipment)
        {
            var client = GenerateProxy(shipment);

            OperationContext = _context + "Test";
            client.Test();
        }
Esempio n. 13
0
        public void TestAuthorizationAdministration(BaseShipment shipment)
        {
            var client = GenerateAuthorizationAdministrationProxy(shipment.EndpointName, shipment.Certificate);

            OperationContext = "AuthAdminTest";
            client.Test();
        }
 public CorrespondenceAgencyNoSystemForm()
 {
     InitializeComponent();
     InitializeComponent();
     _caepFunc = new CorrespondenceAgencyNoSystemEndPointFunction();
     _caepFunc.ReturnMessageXml += ReturnMessageXmlHandler;
     ShipmentTest = new BaseShipment();
     ShipmentIc   = new InsertCorrespondenceShipmentAec {
         InsertCorrespondence = new InsertCorrespondenceV2()
     };
     ShipmentIc.InsertCorrespondence.SdpOptions = new SdpOptions();
     Notifications = new NotificationBEList();
     ShipmentIc.InsertCorrespondence.Notifications       = Notifications;
     ShipmentIc.InsertCorrespondence.ReplyOptions        = new CorrespondenceInsertLinkBEList();
     ShipmentIc.InsertCorrespondence.Content             = new ExternalContentV2();
     ShipmentIc.InsertCorrespondence.Content.Attachments = new AttachmentsV2();
     Filter = new GetCorrespondenceStatus();
     CorrespondenceStatus = new CorrespondenceStatusResultV3();
     Filter.CorrespondenceStatusFilter = new CorrespondenceStatusFilterV3();
     Filter.CorrespondenceStatusFilter.SdpSearchOptions = new SdpStatusSearchOptions();
     GchShipment = new GetCorrespondenceStatusHistoryAecShipment();
     SetUpObjForPropGrid();
     tb_userName.Enabled = false;
     tb_password.Enabled = false;
 }
Esempio n. 15
0
        public void Test(BaseShipment shipment)
        {
            var client = GenerateProxy(shipment);

            OperationContext = "BrokerServiceTest";
            client.Test();
        }
 public int GetAltinnSubmissionStatusEc(BaseShipment shipment)
 {
     OperationContext = "IntGetAltinnSubmissionStatus";
     using (var client = GenerateIntermediaryInboundProxy(shipment))
     {
         return(client.GetAltinnSubmissionStatusEC(shipment.Username, shipment.Password));
     }
 }
Esempio n. 17
0
 public void Test(BaseShipment shipment)
 {
     OperationContext = "BatchLoggingAgencyTest";
     using (var client = GenerateBatchLoggingAgencyProxy(shipment))
     {
         client.Test();
     }
 }
        public void Test(BaseShipment shipment)
        {
            System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
            var client = GenerateProxy(shipment);

            OperationContext = "BrokerServiceTest";
            client.Test();
        }
 public void Test(BaseShipment shipment)
 {
     OperationContext = "IntTest";
     using (var client = GenerateIntermediaryInboundProxy(shipment))
     {
         client.Test();
     }
 }
Esempio n. 20
0
 public IntermediaryInboundStreamedFormEC2()
 {
     InitializeComponent();
     IisepFunc = new IntermediaryInboundStreamedEndPointFunctionalityEC2();
     IisepFunc.ReturnMessageXml += ReturnMessageXmlHandler;
     Shipment     = new IntermediaryStreamedSubmitAttachmentShipment();
     TestShipment = new BaseShipment();
     Result       = new IntermediaryStreamedAttachmentResult();
 }
Esempio n. 21
0
 public ClientBaseForm()
 {
     InitializeComponent();
     lbl_viewedObject.Text          = "";
     _endPointConfigurationNameList = new List <string>();
     pg_objectViewer.PropertySort   = PropertySort.NoSort;
     ReturnValueInt    = new IntWrapper();
     ReturnValueString = new StringWrapper();
     ShipmentTest      = new BaseShipment();
 }
Esempio n. 22
0
 public PrefillForm()
 {
     InitializeComponent();
     _peusepFunc = new PrefillEusEndPointFunction();
     _peusepFunc.ReturnMessageXml += ReturnMessageXmlHandler;
     ShipmentTest  = new BaseShipment();
     ShipmentGpd   = new GetPrefillDataShipmentBase();
     ShipmentGpdv2 = new GetPrefillDataV2ShipmentExt();
     ResultGpd     = new PrefillDataBE();
     ResultGpdv2   = new PrefillDataBEv2();
 }
Esempio n. 23
0
        public LookUpFormEC2()
        {
            InitializeComponent();
            _lookUpEndPointFunction = new LookUpEndPointFunctionEC2();
            _lookUpEndPointFunction.ReturnMessageXml += ReturnMessageXmlHandler;

            ShipmentTest   = new BaseShipment();
            LookUpShipment = new LookUpShipmentEC2();

            SetupObjForPropertyGrid();
        }
Esempio n. 24
0
 public PrefillForm()
 {
     InitializeComponent();
     peusepFunc = new Functionality.EndPoints.ServiceEngine.Prefill.PrefillEUSEndPointFunction();
     peusepFunc.ReturnMessageXml += ReturnMessageXmlHandler;
     ShipmentTest  = new BaseShipment();
     ShipmentGPD   = new GetPrefillDataShipmentBase();
     ShipmentGPDV2 = new GetPrefillDataV2ShipmentExt();
     ResultGPD     = new PrefillDataBE();
     ResultGPDV2   = new PrefillDataBEv2();
 }
Esempio n. 25
0
 public CaseForm()
 {
     InitializeComponent();
     caseEPFunc = new CaseEndPointFunction();
     caseEPFunc.ReturnMessageXml += ReturnMessageXmlHandler;
     ShipmentTest        = new BaseShipment();
     ShipmentArchiveCase = new ArchiveCaseShipment();
     ShipmentCaseList    = new CaseListShipment();
     ShipmentInstantiateCollaboration = new InstantiateCollaborationShipment();
     ResultCaseList = new CaseBEList();
 }
 public CaseAgencyFormEC2()
 {
     InitializeComponent();
     FuncCasep = new CaseAgencySystemEndPointFunctionEC2();
     FuncCasep.ReturnMessageXml += ReturnMessageXmlHandler;
     ShipmentTest        = new BaseShipment();
     ShipmentCaseList    = new CaseListShipment();
     ShipmentSetNotice   = new SetNoticeShipmentEC2();
     ShipmentNotifyEvent = new NotifyEventShipmentEC2();
     ShipmentInstantiateCollaboration = new InstantiateCollaborationShipment();
     SetupObjForPropGrid();
 }
Esempio n. 27
0
 public BatchLoggingFormEC2()
 {
     Func = new BatchLoggingAgencyEndPointFunctionalityEC2();
     Func.ReturnMessageXml += ReturnMessageXmlHandler;
     Shipment       = new BatchLoggingAgencyShipmentEC2();
     TestShipment   = new BaseShipment();
     Result         = new BatchLoggingStatusOverview();
     ResultDetail   = new BatchLoggingDetailedStatus();
     DataItemResult = new DataItem();
     InitializeComponent();
     SetupObjectsForPropertyGrid();
     AssignActions();
 }
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         BaseShipment shipment = new BaseShipment();
         SetBasicShipmentSettings(shipment);
         Client.Test(shipment);
         SetViewedItem("OK", "Test result: ");
     }
     catch (Exception ex)
     {
         SetViewedItem(ex, "Error during Test: ");
     }
 }
Esempio n. 29
0
 public ReporteeArchiveFormEC2()
 {
     InitializeComponent();
     SetupObjectsForPropertyGrid();
     ArchivedFormTask              = new ArchivedFormTaskV2();
     Attachment                    = new AttachmentBEV2();
     ArchivedLookup                = new ArchivedLookupExternal();
     RepArchFunc                   = new ReporteeArchiveEndPointFunctionalityEC2();
     RepArchFunc.ReturnMessageXml += ReturnMessageXmlHandler;
     GetFtShipment                 = new ReporteeArchiveShipment();
     GetLuShipment                 = new ReporteeArchiveLookupShipment();
     AttachmentShipment            = new AttachmentBaseShipment();
     ArchiveBaseShipment           = new ArchiveBaseShipment();
     BaseShipment                  = new BaseShipment();
     AssignActions();
 }
        public BrokerServiceFormEC2()
        {
            InitializeComponent();
            _brokerServiceEpFunc = new BrokerServiceEndPointFunctionEC2();
            _brokerServiceEpFunc.ReturnMessageXml += ReturnMessageXmlHandler;

            _brokerServiceStreanedEpFunc = new BrokerServiceStreamedEndPointFunctionEC2();
            _brokerServiceStreanedEpFunc.ReturnMessageXml += ReturnMessageXmlHandler;

            ShipmentTest = new BaseShipment();
            InitiateBrokerServiceShipment = new InitiateBrokerServiceShipmentEC2();
            GetAvailableFilesShipment     = new GetAvailableFilesShipmentEC2();
            UploadFileStreamedShipment    = new UploadFileStreamedShipment();
            DownloadFileStreamedShipment  = new DownloadFileStreamedShipment();

            UploadFileStreamedReceiptResult = new UploadFileStreamedResult();

            SetupObjForPropertyGrid();
        }