public void LoginWithInvalidCredentialsTest()
        {
            AccountData adminAccountData = AccountFactory.GetInvalidAccountData();

            app.LoginHelper.Login(adminAccountData);
            Assert.IsFalse(app.LoginHelper.IsLoggedIn(adminAccountData));
        }
        public void LoginWithAdminCredentialsTest()
        {
            AccountData adminAccountData = AccountFactory.GetAdminAccountData();

            app.LoginHelper.Login(adminAccountData);
            Assert.IsTrue(app.LoginHelper.IsLoggedIn(adminAccountData));
        }
        public void SetupLogin()
        {
            AccountData adminAccountData = AccountFactory.GetAdminAccountData();

            if (app.LoginHelper.CheckIfThisUserLoggedIn(adminAccountData))
            {
                return;
            }
            app.LoginHelper.Logout();
            app.LoginHelper.Login(adminAccountData);
        }
        public ApplicationManager()
        {
            FirefoxDriverFactory driverFactory = new FirefoxDriverFactory();

            Driver = driverFactory.GetFirefoxDriver();

            AccountFactory   = new AccountFactory();
            Environment      = new TestingEnvironment();
            HelperBase       = new HelperBase(this);
            LoginHelper      = new LoginHelper(this);
            NavigationHelper = new NavigationHelper(this, Environment);
            GroupHelper      = new GroupHelper(this);
            ContactHelper    = new ContactHelper(this);
        }