Skip to content

Commit 34378df

Browse files
committed
Adding more to ConsoleAppTester though not complete
1 parent 3bc6b53 commit 34378df

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

SSLLWrapper.ConsoleAppTester/Program.cs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,24 @@ namespace SSLLWrapper.ConsoleAppTester
55
{
66
class Program
77
{
8+
private const string apiUrl = "https://api.dev.ssllabs.com/api/fa78d5a4";
9+
810
static void Main(string[] args)
911
{
10-
11-
12-
12+
AnalyzeTester();
1313
}
1414

1515
static void AnalyzeTester()
1616
{
17-
var apiService = new ApiService("https://api.dev.ssllabs.com/api/fa78d5a4/");
18-
var analyze = apiService.Analyze("www.ashleypoole.co.uk");
17+
var apiService = new ApiService(apiUrl);
18+
var analyze = apiService.Analyze("http://www.ashleypoole.co.uk");
19+
20+
Console.WriteLine("Has Error Occoured: {0}", analyze.HasErrorOccurred);
21+
Console.WriteLine("First Error Message: {0}", analyze.Errors.First().message);
22+
Console.WriteLine("Status Code: {0}", analyze.Headers.statusCode);
23+
Console.WriteLine("Status: {0}", analyze.status);
1924

20-
Console.WriteLine(string.Format("Has Error Occoured: {0}", analyze.HasErrorOccurred));
21-
Console.WriteLine(string.Format("First Error Message: {0}", analyze.Errors.First().message));
25+
Console.ReadLine();
2226
}
2327
}
2428
}

0 commit comments

Comments
 (0)