public DokumentlagerHandler( DokumentlagerConfiguration dokumentlagerConfiguration, IntegrasjonConfiguration integrasjonConfiguration, IMaskinportenClient maskinportenClient, IAuthenticationStrategy authenticationStrategy = null, HttpClient httpClient = null) { _dokumentlagerConfiguration = dokumentlagerConfiguration; _authenticationStrategy = authenticationStrategy ?? new IntegrasjonAuthenticationStrategy(maskinportenClient, integrasjonConfiguration.IntegrasjonId, integrasjonConfiguration.IntegrasjonPassord); _httpClient = httpClient ?? new HttpClient(); }
private void SetupConfiguration() { _dokumentlagerConfiguration = new DokumentlagerConfiguration(scheme: _scheme, host: _host, port: _port, downloadPath: _downloadPath); _integrasjonConfiguration = new IntegrasjonConfiguration(Guid.NewGuid(), "password"); }