public void TestInitialize()
 {
     _tokensApi        = Substitute.For <ITokensApi>();
     _secretsApi       = Substitute.For <ISecretsApi>();
     _apiClientFactory = Substitute.For <IDevOpsVaultApiClientFactory>();
     _apiClientFactory.GetTokensApi().Returns(_tokensApi);
     _apiClientFactory.GetSecretsApi().Returns(_secretsApi);
     _clientFactory = new DevOpsVaultClientFactory(_apiClientFactory);
     _secureStore   = new DevOpsVaultSecureStore(_clientFactory);
     _devOpsContext = new DevOpsVaultContext();
     _devOpsContext.BasePathPrefix = "uipath";
     _devOpsContext.DevOpsVaultUrl = new Uri("https://test.secretsvault.fake");
     _devOpsContext.ClientId       = "test-client";
     _devOpsContext.ClientSecret   = "test-secret";
     _ctxString = JsonConvert.SerializeObject(_devOpsContext);
 }
 public DevOpsVaultClientFactory(IDevOpsVaultApiClientFactory apiClientFactory)
 {
     _apiClientFactory = apiClientFactory;
 }