public static void Main(string[] args) { // TODO: enter credentials here var client = new CoralClient("username", "password"); var tester = new CoralClientTester(client); string response; // response = tester.TestFlow3(); // Console.WriteLine(response); response = tester.TestFlow2(); Console.WriteLine(response); var flow2results = JsonConvert.DeserializeObject <dynamic>(response); string bookingCode = flow2results["code"]; if (bookingCode != null && bookingCode != "") { response = tester.RunCancellation(bookingCode); Console.WriteLine(response); } // response = tester.RunLocationSearch(); }
public CoralClientTester(CoralClient client) { this.Client = client; }