public KvkApiSettings UpdateKvkApiSettings([FromBody] KvkApiSettings kvkApiSettings)
        {
            _settingsService.UpdateSettings(kvkApiSettings);
            _kvkApiSettings = kvkApiSettings;

            return(_kvkApiSettings);
        }
예제 #2
0
        public KvkSearchApiTests()
        {
            var settings = new KvkApiSettings()
            {
                ApiKey     = "unittest-apikey",
                BaseUrl    = "http://unittest.ut",
                ProfileUrl = "/unittestsearch"
            };

            _settingsServiceMock = new Mock <ISettingsService>();
            _settingsServiceMock.Setup(s => s.GetSettings <KvkApiSettings>())
            .Returns(settings);
        }
 public SettingsController(ISettingsService settingsService)
 {
     _settingsService       = settingsService;
     _kvkApiSettings        = _settingsService.GetSettings <KvkApiSettings>();
     _hrDataserviceSettings = _settingsService.GetSettings <HrDataserviceSettings>();
 }