Skip to content

Commit b37fd73

Browse files
committed
Minor change to ConsoleAppTester for GetStatusCodes and IApiProvider scope
1 parent 4219d90 commit b37fd73

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

SSLLWrapper.ConsoleAppTester/Program.cs

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ static void Main(string[] args)
1111
{
1212
//AnalyzeTester();
1313
//InfoTester();
14-
GetEndpointData();
14+
//GetEndpointData();
15+
GetStatusCodes();
1516
}
1617

1718
static void InfoTester()
@@ -39,13 +40,23 @@ static void AnalyzeTester()
3940

4041
static void GetEndpointData()
4142
{
42-
var endpointDataModel = SSLLService.GetEndpointData("http://www.ashleypoole.co.uk", "104.28.6.2");
43+
var endpointDetails = SSLLService.GetEndpointData("http://www.ashleypoole.co.uk", "104.28.6.2");
4344

44-
Console.WriteLine("Has Error Occoured: {0}", endpointDataModel.HasErrorOccurred);
45-
Console.WriteLine("Status Code: {0}", endpointDataModel.Header.statusCode);
46-
Console.WriteLine("IP Adress: {0}", endpointDataModel.ipAddress);
47-
Console.WriteLine("Grade: {0}", endpointDataModel.grade);
48-
Console.WriteLine("Status Message: {0}", endpointDataModel.statusMessage);
45+
Console.WriteLine("Has Error Occoured: {0}", endpointDetails.HasErrorOccurred);
46+
Console.WriteLine("Status Code: {0}", endpointDetails.Header.statusCode);
47+
Console.WriteLine("IP Adress: {0}", endpointDetails.ipAddress);
48+
Console.WriteLine("Grade: {0}", endpointDetails.grade);
49+
Console.WriteLine("Status Message: {0}", endpointDetails.statusMessage);
50+
51+
Console.ReadLine();
52+
}
53+
54+
static void GetStatusCodes()
55+
{
56+
var statusDetails = SSLLService.GetStatusCodes();
57+
58+
Console.WriteLine("Has Error Occoured: {0}", statusDetails.HasErrorOccurred);
59+
Console.WriteLine("Status Code: {0}", statusDetails.Header.statusCode);
4960

5061
Console.ReadLine();
5162
}

SSLLWrapper/Interfaces/IApiProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace SSLLWrapper.Interfaces
55
{
6-
public interface IApiProvider
6+
interface IApiProvider
77
{
88
HttpWebResponse MakeGetRequest(RequestModel requestModel);
99
}

0 commit comments

Comments
 (0)