public void Init(IAdjustCommandExecutor adjustCommandExecutor, string baseUrl, Action <string> logDelegate = null) { _logDelegate = logDelegate; Log("Initializing..."); var localIp = GetLocalIp(); Log("Local IP: " + localIp); var commandListener = new WindowsCommandListener(adjustCommandExecutor); Log("Setting AdjustFactory.BaseUrl to: " + baseUrl); _testLibrary = new TestLibrary.TestLibrary(baseUrl, commandListener, localIp, _logDelegate); Log("Init finished."); }
public MainPage() { InitializeComponent(); var localIp = GetLocalIp(); var commandListener = new CommandListener(); _testLibrary = new TestLibrary.TestLibrary(BaseUrl, commandListener, localIp); //_testLibrary.AddTest("current/gdpr/Test_GdprForgetMe_after_install"); _testLibrary.AddTestDirectory("current/gdpr"); _testLibrary.ExitAppEvent += (sender, args) => { Exit(); }; commandListener.SetTestLibrary(_testLibrary); StartTestSession(); }