public AbstractApiTest() { var settings = TestSettings.LoadSettings(); SAPI = new SentralApi( settings.BaseUrl, settings.ApiKey, settings.ApiTenant); _isTestSite = settings.BaseUrl.Contains(".sentral.school/"); }
// This method gets called once for each cmdlet in the pipeline when the pipeline starts executing protected override void ProcessRecord() { _connection = new SentralApi(BaseUrl, ApiKey, TenantCode); }
public SentralPSCmdlet() { SentralApiClient = ConnectSentralApi.GetSentralAPIConnection(); }