Beispiel #1
0
		static void ExecuteAllMethods()
		{
			var userName = ConfigurationManager.AppSettings["UserName"];
			var password = ConfigurationManager.AppSettings["Password"];
			var subDomain = ConfigurationManager.AppSettings["SubDomain"];

			var api = new UnfuddleRestClient(userName, password, subDomain, true);

			PeopleTests.ExecuteAllMethods(api);
			AccountsTests.ExecuteAllMethods(api);
		}
		public static void ExecuteAllMethods(UnfuddleRestClient api)
		{
			Console.WriteLine("");
			Console.WriteLine(new string('-', 25));
			Console.WriteLine("Executing ACCOUNTS methods...");

			var accounts = api.GetAccounts();
			Console.WriteLine("Retrieved all accounts. There are {0} accounts.", accounts.Count());


			Console.WriteLine(new string('-', 25));
			Console.WriteLine("");
		}
Beispiel #3
0
		public static void ExecuteAllMethods(UnfuddleRestClient api)
		{
			Console.WriteLine("");
			Console.WriteLine(new string('-', 25));
			Console.WriteLine("Executing PEOPLE methods...");

			var user = api.GetUser("desautelsj");
			Console.WriteLine("desautelsj --> Id: {0}", user);

			var people = api.GetPeople();
			Console.WriteLine("Retrieved all people. There are {0} people.", people.Count());


			Console.WriteLine(new string('-', 25));
			Console.WriteLine("");
		}