public void SetTestOptions(IntegrationTesting.AdjustTestOptions testOptions) { if (testOptions.BasePath != null) { _basePath = testOptions.BasePath; } if (testOptions.GdprPath != null) { _gdprPath = testOptions.GdprPath; } if (testOptions.BaseUrl != null) { AdjustFactory.BaseUrl = testOptions.BaseUrl; } if (testOptions.GdprUrl != null) { AdjustFactory.GdprUrl = testOptions.GdprUrl; } if (testOptions.TimerIntervalInMilliseconds.HasValue) { var intervalMillis = testOptions.TimerIntervalInMilliseconds.Value; if (intervalMillis == -1) { AdjustFactory.SetTimerInterval(TimeSpan.FromMinutes(1)); } else { AdjustFactory.SetTimerInterval(TimeSpan.FromMilliseconds(intervalMillis)); } } if (testOptions.TimerStartInMilliseconds.HasValue) { var timerStartMillis = testOptions.TimerStartInMilliseconds.Value; if (timerStartMillis == -1) { AdjustFactory.SetTimerStart(TimeSpan.FromMinutes(1)); } else { AdjustFactory.SetTimerStart(TimeSpan.FromMilliseconds(timerStartMillis)); } } if (testOptions.SessionIntervalInMilliseconds.HasValue) { var sessionIntervalMillis = testOptions.SessionIntervalInMilliseconds.Value; if (sessionIntervalMillis == -1) { AdjustFactory.SetSessionInterval(TimeSpan.FromMinutes(30)); } else { AdjustFactory.SetSessionInterval(TimeSpan.FromMilliseconds(sessionIntervalMillis)); } } if (testOptions.SubsessionIntervalInMilliseconds.HasValue) { var subSessionIntervalMillis = testOptions.SubsessionIntervalInMilliseconds.Value; if (subSessionIntervalMillis == -1) { AdjustFactory.SetSubsessionInterval(TimeSpan.FromSeconds(1)); } else { AdjustFactory.SetSubsessionInterval(TimeSpan.FromMilliseconds(subSessionIntervalMillis)); } } if (testOptions.NoBackoffWait.HasValue && testOptions.NoBackoffWait.Value) { AdjustFactory.SetPackageHandlerBackoffStrategy(BackoffStrategy.NoWait); AdjustFactory.SetSdkClickHandlerBackoffStrategy(BackoffStrategy.NoWait); } }