Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (23 sloc) 953 Bytes
using com.ciclosoftware.infusionsoft.restapi;
using Xunit.Abstractions;
namespace Infusionsoft.RestApi
{
public abstract class TestBase
{
protected IApiFactory ApiFactory;
protected readonly ITestOutputHelper Output;
protected readonly string ValidToken;
protected readonly string ValidAuthCode;
protected readonly string ValidRefreshToken;
protected TestBase(ITestOutputHelper output)
{
Output = output;
var clientId = TestService.Configuration["InfusionsoftClientId"];
var clientSecret = TestService.Configuration["InfusionsoftClientSecret"];
ApiFactory = new ApiFactory(clientId, clientSecret);
ValidToken = TestService.Configuration["ValidToken"];
ValidAuthCode = TestService.Configuration["ValidAuthCode"];
ValidRefreshToken = TestService.Configuration["ValidRefreshToken"];
}
}
}