public static void Setup(TestContext testContext)
        {
            _endpointHost = ConfigurationManager.AppSettings.Get("EndpointHost");
            _endpointIp = ConfigurationManager.AppSettings.Get("EndpointIP");

            var ssllService = new SSLLabsApiService(ConfigurationManager.AppSettings.Get("ApiUrl"));
            _endpoint = ssllService.GetEndpointData(_endpointHost, _endpointIp);
        }
예제 #2
0
 /// <summary>
 /// Constructs the SSLAnalyzer using a parsed list of HostEntries and a connected API service object.
 /// </summary>
 public SSLAnalyzer(List<HostEntry> entries, SSLLabsApiService service)
 {
     _service = service;
     _entries = entries;
     _estRuntime = 120;
     _waitInterval = 3;
     _analyzedEntries = new List<HostEntry>();
 }
예제 #3
0
        public MainWindow()
        {
            InitializeComponent();
            this.Closed += MainWindowClosed;
            MainPageWindow.Title = getWindowTitle();

            _service = new SSLLabsApiService("https://api.ssllabs.com/api/v2");
            _parserDelegator = new ParserDelegator();
            ParserDelegator.OnParseComplete += ParserDelegatorOnParseComplete;

            checkConnectionStatus();
            reloadSettings();
            setupViews();
            assignEvents();
            prepareAnimations();

        }
 public static void Setup(TestContext testContext)
 {
     _host = ConfigurationManager.AppSettings.Get("EndpointHost");
     _ssllService = new SSLLabsApiService(ConfigurationManager.AppSettings.Get("ApiUrl"));
     _analyze = _ssllService.AutomaticAnalyze(_host);
 }
예제 #5
0
 public static void Setup(TestContext testContext)
 {
     var ssllService = new SSLLabsApiService(ConfigurationManager.AppSettings.Get("ApiUrl"));
     _info = ssllService.Info();
 }