File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
SSLLWrapper.ConsoleAppTester Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -5,20 +5,24 @@ namespace SSLLWrapper.ConsoleAppTester
5
5
{
6
6
class Program
7
7
{
8
+ private const string apiUrl = "https://api.dev.ssllabs.com/api/fa78d5a4" ;
9
+
8
10
static void Main ( string [ ] args )
9
11
{
10
-
11
-
12
-
12
+ AnalyzeTester ( ) ;
13
13
}
14
14
15
15
static void AnalyzeTester ( )
16
16
{
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 ) ;
19
24
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 ( ) ;
22
26
}
23
27
}
24
28
}
You can’t perform that action at this time.
0 commit comments