public void TestSettingNotNullSessionCallsBrowserObjectSetCookies()
 {
     var cookies = new List<Cookie>();
     cookies.Add(new Cookie("1", "2"));
     var session = new AppDirectSession() { Cookies = cookies };
     _browserWindowsManager.Session = session;
     _browserObject.Received().SetCookies(cookies);
 }
 public void TestUpdateSessionSetsSessionOnWindowsManager()
 {
     var session = new AppDirectSession();
     _browsersManagerApi.UpdateSession(session);
     _browserWindowsManager.Received().Session = session;
 }
 public void TestUpdateSessionCallsUpdateSession()
 {
     var session = new AppDirectSession();
     _browserWindowsCommunicator.Start();
     _browserWindowsCommunicator.UpdateSession(session);
     _browserApi.Received().UpdateSession(session);
 }