Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Digipost.Signature.Api.Client.Core.Tests/BaseClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public class ConstructorMethod : BaseClientTests
public void Initializes_with_properties()
{
//Arrange
var tlsSetup = SecurityProtocolType.Tls12;
var clientConfiguration = new ClientConfiguration(Environment.DifiQa, GetBringCertificate())
{
HttpClientTimeoutInMilliseconds = 1441
Expand All @@ -25,7 +24,6 @@ public void Initializes_with_properties()

//Assert
Assert.Equal(clientConfiguration, clientStub.ClientConfiguration);
Assert.Equal(tlsSetup, ServicePointManager.SecurityProtocol);
Assert.NotNull(clientStub.RequestHelper);
Assert.Equal(clientConfiguration.HttpClientTimeoutInMilliseconds, clientStub.HttpClient.Timeout.TotalMilliseconds);
}
Expand Down
2 changes: 0 additions & 2 deletions Digipost.Signature.Api.Client.Core/BaseClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ protected BaseClient(ClientConfiguration clientConfiguration, ILoggerFactory log
_logger = loggerFactory.CreateLogger<BaseClient>();
_loggerFactory = loggerFactory;

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

ClientConfiguration = clientConfiguration;
HttpClient = MutualTlsClient();
RequestHelper = new RequestHelper(HttpClient, _loggerFactory);
Expand Down