We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 332b7a4 commit b0c41e0Copy full SHA for b0c41e0
tests/CompaniesHouse.IntegrationTests/Keys.cs
@@ -4,6 +4,17 @@ namespace CompaniesHouse.IntegrationTests
4
{
5
public static class Keys
6
7
- public static string ApiKey { get; } = "QNAJ_N174kLfqk8RAQOL3Nir48KjcZckCvolW1s6";
+ public static string ApiKey
8
+ {
9
+ get
10
11
+ var key = Environment.GetEnvironmentVariable("COMPANIES_HOUSE_API_KEY");
12
+ if (string.IsNullOrEmpty(key))
13
14
+ throw new InvalidOperationException("COMPANIES_HOUSE_API_KEY environment variable is not set.");
15
+ }
16
+ return key;
17
18
19
}
20
0 commit comments