public string GetSecretKey() { var secretKey = _keyValueRepository.GetStringValueByKey(KeyOfSecretKey); if (string.IsNullOrEmpty(secretKey)) { throw new InvalidOperationException("Secret key not found"); } return(secretKey); }