Skip to content

Commit

Permalink
small test update
Browse files Browse the repository at this point in the history
  • Loading branch information
ahwm committed Oct 24, 2024
1 parent 9049689 commit b456f4e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/GodaddyWrapper.Tests/DomainTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ namespace GodaddyWrapper.Tests
{
public class DomainTests
{
private readonly string AccessKey;
private readonly string ApiSecret;

private readonly GoDaddyClient client;

Expand All @@ -22,9 +20,9 @@ public DomainTests(GoDaddyClient goDaddyClient)
#else
public DomainTests()
{
AccessKey = Environment.GetEnvironmentVariable("GODADDY_ACCESS_KEY").Trim();
ApiSecret = Environment.GetEnvironmentVariable("GODADDY_API_SECRET").Trim();
client = new GoDaddyClient(new GoDaddyClientOptions { AccessKey = AccessKey, SecretKey = ApiSecret, IsTesting = true });
var accessKey = Environment.GetEnvironmentVariable("GODADDY_ACCESS_KEY").Trim();
var apiSecret = Environment.GetEnvironmentVariable("GODADDY_API_SECRET").Trim();
client = new GoDaddyClient(new GoDaddyClientOptions { AccessKey = accessKey, SecretKey = apiSecret, IsTesting = true });
}
#endif

Expand Down

0 comments on commit b456f4e

Please sign in to comment.