Esempio n. 1
0
        public static void advisorsApiTest(String username, String password, String auth, vestorly.model.Session mySession)
        {
            vestorly.api.AdvisorsApi advisorsApi = new vestorly.api.AdvisorsApi();

            // GET{ID}
            String myID = mySession.currentUser.id;
            System.Diagnostics.Debug.WriteLine("GET{ID}: " + advisorsApi.FindAdvisorByID(auth, myID));
            System.Diagnostics.Debug.WriteLine("All AdvisorsApi Tests have passed!");
        }
Esempio n. 2
0
        public static void sessionsApiTest(String username, String password, String auth, vestorly.model.Session mySession)
        {
            System.Diagnostics.Debug.WriteLine("\n\nSTART OF SESSIONSAPI TEST\n\n");
            vestorly.api.SessionsApi sessionsApi = new vestorly.api.SessionsApi();

            // POST
            System.Diagnostics.Debug.WriteLine("POST: " + mySession);

            // DELETE
            System.Diagnostics.Debug.WriteLine("DELETE{ID}: " + sessionsApi.Logout(auth, mySession.currentUser.id));

            System.Diagnostics.Debug.WriteLine("All SessionsApi Tests have passed!");
        }