public void AddNewBuilding()
        {
            BuildingPage buildingPage       = GoToBuildingPage();
            BuildingForm createBuildingForm = buildingPage.GoTo <BuildingForm>();

            createBuildingForm.FillInTeFormFields(name, street, randomInt, city, "Aktywny");
            BuildingPage buildingPageAfterAddNewBuilding = createBuildingForm.SubmitForm <BuildingPage>();

            Assert.IsTrue(buildingPageAfterAddNewBuilding.Table.IsDataExistsInTableRows(name, street, city, "Aktywny"));
        }
        public void CreateBuildingWithoutStatus()
        {
            BuildingPage buildingPage       = GoToBuildingPage();
            BuildingForm createBuildingForm = buildingPage.GoTo <BuildingForm>();

            createBuildingForm.FillInTeFormFields(name, street, randomInt, city, "Wybierz");
            BuildingForm formAfterSubmit = createBuildingForm.SubmitIncorrectForm();

            Assert.IsTrue(formAfterSubmit.Error.IsDisplayUnselectedStatusErrorField);
            Assert.AreEqual(formAfterSubmit.Error.UnselectedStatusErrorText, "Pole jest wymagane.");
        }
        public void CreateBuildingWithCityEmpty()
        {
            BuildingPage buildingPage       = GoToBuildingPage();
            BuildingForm createBuildingForm = buildingPage.GoTo <BuildingForm>();

            createBuildingForm.FillInTeFormFields(name, street, randomInt, string.Empty, "Aktywny");
            BuildingForm formAfterSubmit = createBuildingForm.SubmitIncorrectForm();

            Assert.IsTrue(formAfterSubmit.Error.IsDisplayEmptyCityErrorField);
            Assert.AreEqual(formAfterSubmit.Error.EmptyCityErrorText, "Pole jest wymagane.");
        }