public ServiceConfigurationHelperTests() { this.CertificateManagerMock = this.CreateCertificateManagerMock(); this.ServiceConfigHelperWithSslUrl = new ServiceConfigurationHelper(FAKE_SERVICE_URL_WITH_SSL, CertificateManagerMock); }
/// <summary> /// It creates necessary structs to create a .NET Service Channel. /// </summary> /// <param name="serviceURL">The complete url of desired service.</param> /// <param name="certificateManager">In a unit testi pass a mock for Server Certificate Manager. Do not use this argument in production code.</param> public ServiceConfigurationHelper(string serviceURL, ServerCertificateManager certificateManager = null) { this.ServiceURL = serviceURL; this.ServerCertificateManager = certificateManager ?? new ServerCertificateManager(); }