public void TC14497_SendCompression()
        {
            storeResults = true;
            CreateImportFile.TREMIR_R010_CompressionFile();
            PO_Dashboard.GoToImportTradeManualSource();
            PO_ImportManualTradeSource importCompression = new PO_ImportManualTradeSource();
            importCompression.ImportTREMIRFileR010()
                .Import();
            importCompression.VerifyFileIsUploaded();

            PO_UTISearch.GoTo(Test.UTI, 50);
            PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
            emirTransactionPage.VerifyReadyToSend();

            PO_SendTradesByTargetSetting sendTrades = PO_Dashboard.GoToSendTradesByTargetSetting();
            sendTrades.SelectTargetSEtting("Send RegisTR New Trades (EMIR, REGIS-TR)");
            sendTrades.Send();
            sendTrades.VerifySendingByTargetSetting("Send RegisTR New Trades (EMIR, REGIS-TR)");

            PO_UTISearch.GoTo(Test.UTI, 50);
            emirTransactionPage.VerifyReadyToSend(180);

            PO_Dashboard.GoToSendTradesByTargetSetting();
            sendTrades.SelectTargetSEtting("Send RegisTR Cancel Trades (EMIR, REGIS-TR)");
            sendTrades.Send();
            sendTrades.VerifySendingByTargetSetting("Send RegisTR Cancel Trades (EMIR, REGIS-TR)");

            PO_UTISearch.GoTo(Test.UTI, 50);
            emirTransactionPage.VerifySendSuccessfully(30);
            Test.result = "Passed";
        }
 internal static void VerifyEmirConfirmed()
 {
     PO_UTISearch.GoTo(Test.UTI, 50);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifySendSuccessfully(30);
     emirTransactionPage.VerifyEMIRConfirmed();
 }
        public void EditTrade_EditNotAllowedDuringSendSuccessfull()
        {
            storeResults = true;
            ImportTrade.TREMIR_R010_NonDelegated_DTCC();

            Send.SendTrade(TargetSettings_SendTrades.SendDTCCETDTradeNewRecords);

            PO_UTISearch.GoTo(Test.UTI, 50);
            PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
            emirTransactionPage.VerifySendSuccessfully(30);
            emirTransactionPage.VerifyEditingNotPossible();

            Test.result = "Passed";
        }
        public void SetUp()
        {
            Test.SetTestName(TestContext);
            Test.LoginAsRegularUser();
            ImportTrade.TREMIR_R010_Delegated_DTCC();
            PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
            emirTransactionPage.VerifyReadyToSend();

            Send.SendTrade(TargetSettings_SendTrades.SendDTCCETDTradeNewRecords);
            PO_UTISearch.GoTo(Test.UTI, 5);

            emirTransactionPage.VerifySendSuccessfully(100);
            emirTransactionPage.VerifyEMIRConfirmed();
            ImportCollateral.GenXML_Delegated();
        }