public static void accountApp(int id) { if (id == 1) { Console.WriteLine("AccountApp - TEST - START"); //LoginApp.doLogin("yodlee_10000004", "yodlee123", "ysluser2", "TEST@123"); Accounts accounts = AccountApp.getAccounts(); Console.WriteLine("------------------------"); Console.WriteLine("Account Id Account Name"); Console.WriteLine("------------------------"); Console.WriteLine(accounts.ToString()); Console.WriteLine("------------------------"); } else { Console.WriteLine("AccountApp - TEST - START"); //LoginApp.doLogin("yodlee_10000004", "yodlee123", "ysluser2", "TEST@123"); Accounts accounts = AccountApp.getAccountsWithOptions(); Console.WriteLine("------------------------"); Console.WriteLine("AccountId PlanName ProviderName CusipNumber Description HoldingType Price"); Console.WriteLine("------------------------"); Console.WriteLine(accounts.ToString()); Console.WriteLine("------------------------"); } LoginApp.readValue(); }
public static void ProcessInput(int keyValue) { if (keyValue > 12) { Console.WriteLine("Enter One Valid Number"); readValue(); } else { switch (keyValue) { case 1: Console.WriteLine("Enter the name of the Provider you want to search : "); String searchString = Console.ReadLine(); //String searchString = "Dag"; ProviderApp.searchProvider(searchString); LoginApp.readValue(); break; case 2: //AddSiteAccount.addSiteAccount(); AddProviderAccount.AddAccount(1); break; case 3: AddProviderAccount.AddAccount(2); break; case 4: AddProviderAccountNew.AddAccount(1); break; case 5: AddProviderAccountNew.AddAccount(2); break; case 6: AccountApp.accountApp(1); break; case 7: HoldingApp.holdingApp(1); break; case 8: TransactionApp.transactionApp(); break; case 9: AssetSummaryApp.assetSummaryApp(); break; case 10: HoldingApp.holdingApp(2); break; case 11: AccountApp.accountApp(2); break; case 0: Environment.Exit(0); break; } } }