public void TestCloseApplicationCallsHideOnWindow() { var windowMock = Substitute.For <IBrowserWindow>(); _browserWindowsManager.GetBrowserWindow(null).ReturnsForAnyArgs(windowMock); _browsersManagerApi.CloseApplication("1"); windowMock.Received().Hide(); }
public void CloseApplication(string appId) { var browserWindow = _browserWindowsManager.GetBrowserWindow(appId); if (browserWindow != null) { _uiHelper.PerformInUiThread(browserWindow.Hide); } }