Пример #1
0
 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 AddAccount(int type)
        {
            Providers     providers     = null;
            RefreshStatus refreshStatus = null;

            Console.WriteLine("Add Provider Account App - TEST - START");
            Console.WriteLine("Enter the name of the  Provider you want to search : ");
            String searchString = Console.ReadLine();

            //String searchString = "Dag";
            ProviderApp.searchProvider(searchString);
            if (type == 2)
            {
                Console.WriteLine("Enter the Provider Id : ");
                String providerId = Console.ReadLine();
                //String providerId = "16442";
                providers = ProviderApp.getProviderLoginForm(providerId);
                addMFA_Account(providers);
            }
            if (type == 1)
            {
                Console.WriteLine("Enter the Provider Id : ");
                String providerId = Console.ReadLine();
                //String providerId = "16441";
                providers = ProviderApp.getProviderLoginForm(providerId);
                addNonMFA_Account(providers);
            }
            //Console.ReadLine();
            LoginApp.readValue();
        }
Пример #3
0
        public static void assetSummaryApp()
        {
            Console.WriteLine("AssetSummary - TEST - START");

            //LoginApp.doLogin("yodlee_10000004", "yodlee123", "ysluser2", "TEST@123");
            Console.WriteLine("------------------------");
            Console.WriteLine("ClassificationType ClassificationValue Contribution Value HoldingId AccountId Value Cash");
            Console.WriteLine("------------------------");
            AssetSummaries assetSummaries = AssetSummaryApp.AssetSummaries;

            Console.WriteLine(assetSummaries.ToString());
            LoginApp.readValue();
        }
Пример #4
0
        public static void transactionApp()
        {
            Console.WriteLine("TransactionApp - TEST - START");
            //LoginApp.doLogin("yodlee_10000004", "yodlee123", "sprint13last30days", "TEST@123");
            Transactions transactions = TransactionApp.Transactions;

            Console.WriteLine("-------------------------------");
            Console.WriteLine("TransactionId Amount BaseType");
            Console.WriteLine("-------------------------------");
            Console.WriteLine(transactions.ToString());
            Console.WriteLine("-------------------------------");
            LoginApp.readValue();
            //Console.ReadLine();
        }
Пример #5
0
        public static void billsApp()
        {
            Console.WriteLine("BillsApp - TEST - START");
            //LoginApp.doLogin("yodlee_10000004", "yodlee123", "ysluser2", "TEST@123");

            Bills bills = BillsApp.Bills;

            Console.WriteLine("------------------");
            Console.WriteLine("Bill Id Due Amount");
            Console.WriteLine("------------------");
            Console.WriteLine(bills.ToString());
            Console.WriteLine("------------------");
            LoginApp.readValue();
        }
Пример #6
0
        public static void siteApp()
        {
            Console.WriteLine("SiteAPP - TEST - START");
            //LoginApp.doLogin("yodlee_10000004", "yodlee123", "ysluser2", "TEST@123");
            Console.WriteLine("Enter the site you want to search : ");
            string searchString = Console.ReadLine();

            searchSite(searchString);
            Console.WriteLine("Enter the site Id : ");
            string site = Console.ReadLine();

            getSiteLoginForm(site);
            LoginApp.readValue();
        }
Пример #7
0
        public static void addSiteAccount()
        {
            Provider provider = new Provider();

            Console.WriteLine("AddSiteAccountAPP - TEST - START");
            //LoginApp.doLogin("yodlee_10000004", "yodlee123", "ysluser2", "TEST@123");
            //LoginApp.doLogin("private-sandboxtwo", "Yodlee@123", "logademo1", "yodlee@123");
            Console.WriteLine("Enter the site you want to search : ");
            string searchString = Console.ReadLine();

            SiteApp.searchSite(searchString);
            Console.WriteLine("Enter the site Id : ");
            string site = Console.ReadLine();

            provider = SiteApp.getSiteLoginForm(site);
            provider.getProvider()[0].LoginForm.Row[0].Field[0].Value = "DBmet1.site16441.1";
            provider.getProvider()[0].LoginForm.Row[1].Field[0].Value = "site16441.1";
            AddSiteAccount.addSiteAccount(provider);
            siteaccountId siteaccount = JsonConvert.DeserializeObject <siteaccountId>(jsonresp);

            Console.WriteLine(AddSiteAccount.getRefreshStatus(siteaccount.siteAccountId));
            LoginApp.readValue();
        }
Пример #8
0
 public static void holdingApp(int id)
 {
     Console.WriteLine("HoldingApp - TEST - START");
     if (id == 1)
     {
         //LoginApp.doLogin("yodlee_10000004", "yodlee123", "ysluser2", "TEST@123");
         Console.WriteLine("------------------------");
         Console.WriteLine("HoldingId AccountId Description HoldingType Price");
         Console.WriteLine("------------------------");
         Holdings holdings = HoldingApp.Holdings;
         Console.WriteLine(holdings.ToString());
     }
     else
     {
         //LoginApp.doLogin("yodlee_10000004", "yodlee123", "ysluser2", "TEST@123");
         Console.WriteLine("------------------------");
         Console.WriteLine("HoldingId AccountId Description HoldingType Value ClassificationType ClassificationValue allocation");
         Console.WriteLine("------------------------");
         Holdings holdings = HoldingApp.HoldingsWithAsset;
         Console.WriteLine(holdings.ToString());
     }
     LoginApp.readValue();
 }