public void Counterparty_SearchingFullName()
 {
     storeResults = true;
     searchTerm = Test.extRef;
     cp = new PO_CounterParties_PopUp();
     cp.SearchCP(searchTerm);
     Util.CheckIfTextPresented(Test.extRef);
     Test.result = "Passed";
 }
 public void Counterparty_SearchingStartsWithAsterisk()
 {
     storeResults = true;
     searchTerm = "*" + Test.extRef.Substring(1);
     cp = new PO_CounterParties_PopUp();
     cp.SearchCP(searchTerm);
     Util.CheckIfTextPresented(Test.extRef);
     Test.result = "Passed";
 }
 public void Counterparty_SearchingEndsWithAsterisk()
 {
     storeResults = true;
     searchTerm = Test.extRef.Remove(Test.extRef.Length - 3) + "*";
     cp = new PO_CounterParties_PopUp();
     cp.SearchCP(searchTerm);
     Util.CheckIfTextPresented(Test.extRef);
     Test.result = "Passed";
 }
 public void Counterparty_SearchByBIC()
 {
     storeResults = true;
     searchTerm =bic.Remove(bic.Length - 2);
     cp = new PO_CounterParties_PopUp();
     cp.SearchCPByBic(searchTerm);
     Util.CheckIfTextPresented(Test.extRef);
     Test.result = "Passed";
 }
 public void Counterparty_SearchingEndsAndStartsWithAsterisk()
 {
     storeResults = true;
     string substracted = "*" + Test.extRef.Substring(1);
     searchTerm = substracted.Remove(substracted.Length - 2) + "*";
     cp = new PO_CounterParties_PopUp();
     cp.SearchCP(searchTerm);
     Util.CheckIfTextPresented(Test.extRef);
     Test.result = "Passed";
 }
 public void Counterparty_CheckDelegatedFlags()
 {
     storeResults = true;
     cp = PO_Dashboard.GoToCounterPartiesPopUp();
     cp.ViewDetails("000TestDelegatedCounterParty");
     Util.WaitForElementVisibleByXPath("//p[contains(text(), 'Delegated Collateral')]", 15);
     Util.WaitForElementVisibleByXPath("//p[contains(text(), 'Delegated Reporting')]", 15);
     Util.WaitForElementVisibleByXPath("//p[contains(text(), 'Delegated Valuation')]", 15);
     Test.result = "Passed";
 }
 public void SetUp()
 {
     Test.SetTestName(TestContext);
     Test.LoginAsRegularUser();
     cp = PO_Dashboard.GoToCounterPartiesPopUp();
     cp.CreateNewCounterParty()
         .Create();
     cp.VerifyCounterPartyIsCreated();
     cp.ClosePopUp();
     PO_Dashboard.LogOff();
     PO_LoginPage login = new PO_LoginPage();
     PO_Dashboard dash = login.LoginWithIEMIRUser2();
     PO_StaticEntitiesAwaitingApproval approvalQueue = dash.GoToStaticEntitiesAwaitingApproval();
     approvalQueue.ApproveStaticEntitie(Test.extRef);
     PO_Dashboard.LogOff();
     login.LoginWithRegularUser();
     PO_Dashboard.GoToCounterPartiesPopUp();
 }
        public void Counterparty_IntragroupNotPresent()
        {
            Test.SetTestName(TestContext);
            Test.LoginAsSystemUser();
            cp = PO_Dashboard.GoToCounterPartiesPopUp();
            cp.CreateNewCounterParty()
                .Create();
            cp.VerifyCounterPartyIsCreated();
            cp.ClosePopUp();
            PO_Dashboard.LogOff();
            PO_LoginPage login = new PO_LoginPage();
            PO_Dashboard dash = login.LoginWithIEMIRUser2();
            PO_StaticEntitiesAwaitingApproval approvalQueue = dash.GoToStaticEntitiesAwaitingApproval();
            approvalQueue.ApproveStaticEntitie(Test.extRef);
            PO_Dashboard.LogOff();
            login.LoginWithRegularUser();
            PO_Dashboard.GoToCounterPartiesPopUp();

            PO_CounterParty_EditCP edit = cp.EditCounterParty();
            edit.VerifyIntragroupNotPresent();
        }