private void RunTestsCore(string label, string accountId, string authToken, string compareServiceBaseUrl) { if (string.IsNullOrEmpty(accountId)) { throw new ArgumentException("AccountId was not provided."); } if (string.IsNullOrEmpty(authToken)) { throw new ArgumentException("AuthToken was not provided."); } using (var client = new Comparisons(accountId, authToken, compareServiceBaseUrl, _clientConfig)) { var comparisons = client.GetAll(); Console.WriteLine($"[{label}] Initial comparisons count: {comparisons.Count}"); var compareFromData = CreateComparison(label, client, CreateComparisonFromData); var compareFromUrls = CreateComparison(label, client, CreateComparisonFromUrls); comparisons = client.GetAll(); Console.WriteLine($"[{label}] Comparisons count (Post-create): {comparisons.Count}"); client.Delete(compareFromData); client.Delete(compareFromUrls); comparisons = client.GetAll(); Console.WriteLine($"[{label}] Comparisons count (Post-delete): {comparisons.Count}"); } }