public void ChangeContactDetails()
        {
            var model        = CompanyModel.GenerateCompany();
            var contactModel = CompanyContactModel.GenerateContact();

            LoginAndCreateCompany(model, contactModel);
            var contactModel2 = CompanyContactModel.GenerateContact();

            EditCompanyContactOnCompanyPage(contactModel2);
        }
        public void CreateCompanyTest()
        {
            var model        = CompanyModel.GenerateCompany();
            var contactModel = CompanyContactModel.GenerateContact();

            Login(Credentials.adminUserName, Credentials.adminPassword);
            headerPanel.clickaddNewLead();
            SetCompanyDetails(model);
            SetCompanyContact(contactModel);
            _addNewLead.ClickSaveGoTo();
            var actualCompanyName = companyPage.GetName();

            Assert.AreEqual(actualCompanyName, model.Name, "Company name is not same that expected");
        }
        public void EditCompanyTest()
        {
            var model        = CompanyModel.GenerateCompany();
            var contactModel = CompanyContactModel.GenerateContact();

            LoginAndCreateCompany(model, contactModel);
            model = CompanyModel.GenerateCompany();
            EditCompanyInfo(model);
            var model2 = companyPage.GetCompanyModel();

            Assert.AreEqual(model.Phone, model2.Phone, "Tel is not same that expected");
            Assert.AreEqual(model.City, model2.City, "City is not same that expected");
            Assert.AreEqual(model.Name, model2.Name, "Name is not same that expected");
            Assert.AreEqual(model.Street, model2.Street, "Street is not same that expected");
            Assert.AreEqual(model.Region, model2.Region, "Region is not same that expected");
        }