public OrderCloudIntegrationsCardConnectService(OrderCloudIntegrationsCardConnectConfig config, string environment, IFlurlClientFactory flurlFactory) { Config = config; // if no credentials are provided in Test and UAT, responses will be mocked. noAccountCredentials = string.IsNullOrEmpty(config?.Authorization) && string.IsNullOrEmpty(config?.AuthorizationCad); appEnvironment = (AppEnvironment)Enum.Parse(typeof(AppEnvironment), environment); _flurl = flurlFactory.Get($"https://{Config?.Site}.{Config?.BaseUrl}/"); }
public OrderCloudIntegrationsCardConnectService(OrderCloudIntegrationsCardConnectConfig config, IFlurlClientFactory flurlFactory) { Config = config; _flurl = flurlFactory.Get($"https://{Config.Site}.{Config.BaseUrl}/"); }