public BrokerServiceAvailableFile[] GetAvailableFiles(GetAvailableFilesShipmentEC2 shipment)
        {
            var client = GenerateProxy(shipment);

            OperationContext = "BrokerServiceTest";
            return(client.GetAvailableFilesEC(shipment.Username, shipment.Password, shipment.BrokerServiceSearch).ToArray());
        }
        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();
        }