public static SearchDTO GetUnloggedMyAccountDTO(UnloggedMyAccount unloggedMyAccount) { SearchDTO result = null; IDictionary <UnloggedMyAccount, SearchDTO> unloggedMyAccounts = new Dictionary <UnloggedMyAccount, SearchDTO>(); unloggedMyAccounts.Add(UnloggedMyAccount.REGISTER, new SearchDTO("Register", ".dropdown-menu-right li a[href*='/register']")); unloggedMyAccounts.Add(UnloggedMyAccount.LOGIN, new SearchDTO("Login", ".dropdown-menu-right li a[href*='/login']")); result = unloggedMyAccounts[unloggedMyAccount]; if (result == null) { // TODO Develop Custom Exception throw new Exception("Currency not Found."); } return(result); }
protected void ClickUnloggedMyAccountByPartialName(UnloggedMyAccount optionName) { // TODO Check if Unlogged ClickDropdownMyAccountByPartialName(ApplicationRepository .GetUnloggedMyAccountDTO(optionName).UIPartialName); }