/// <summary> /// Default constructor. Attempts to load configuration from file. /// </summary> public OcspLookupTest() { // 1. Load normal OCSP config _config = ConfigurationHandler.GetConfigurationSection <OcspConfig>(); // 2. Load OcspLookupTest-specific configuration: _testConfig = ConfigurationHandler.GetConfigurationSection <OcspLookupTestConfig>(); }
/// <summary> /// Constructor. Does not rely on configuration files. /// </summary> /// <param name="ocspConfig">The OCSP configuration</param> /// <param name="testConfig">Configuration specific for this class</param> public OcspLookupTest(OcspConfig ocspConfig, OcspLookupTestConfig testConfig) { _config = ocspConfig; _testConfig = testConfig; }