public void should_have_fields()
        {

            var dataProvidersPage = new DataProvidersPageObjects(driver, common.CONN_STRING + "#/data-provider-view/59389746-3fe0-4578-a991-f0a6bbfbd536/1");

            Assert.GreaterOrEqual(dataProvidersPage.GetDataProviderFieldCount("dField in dataProv.dataFields"), 1);
        }
        public void should_set_connection_details()
        {

            var dataProvidersPage = new DataProvidersPageObjects(driver, common.CONN_STRING + "#/data-provider-view/59389746-3fe0-4578-a991-f0a6bbfbd536/1");

            Assert.AreEqual("Data Provider View : Response", dataProvidersPage.FindByIdWithAttribute("connection_details", "title"));
        }
        public void should_set_field_table_title()
        {

            var dataProvidersPage = new DataProvidersPageObjects(driver, common.CONN_STRING + "#/data-provider-view/59389746-3fe0-4578-a991-f0a6bbfbd536/1");

            Assert.AreEqual("Data Provider View : Request - Data Fields", dataProvidersPage.FindByIdWithAttribute("field_table_title", "title"));
        }
        public void should_set_title()
        {

            var dataProvidersPage = new DataProvidersPageObjects(driver, common.CONN_STRING + "#/data-provider-detail/59389746-3fe0-4578-a991-f0a6bbfbd536/1");

            Assert.AreEqual("Data Provider Detail : Request", dataProvidersPage.FindByIdWithAttribute("title", "title"));
        }
        public void should_have_minimum_5_dataProviders_specified()
        {

            var dataProvidersPage = new DataProvidersPageObjects(driver, common.CONN_STRING + "#/data-providers");

            Assert.GreaterOrEqual(5, dataProvidersPage.GetDataProvidersCount());
        }
        public void should_set_title()
        {
            
            var dataProvidersPage = new DataProvidersPageObjects(driver, common.CONN_STRING + "#/data-providers");

            Assert.AreEqual("Data Providers", dataProvidersPage.FindByIdWithAttribute("title", "title"));
        }
        public void should_navigate_to_relevant_data_provider()
        {

            var dataProvidersPage = new DataProvidersPageObjects(driver, common.CONN_STRING + "#/data-providers");
            var id = dataProvidersPage.GetDataProviderMetaAttribute("Lightstone", "dp_id");
            var version = dataProvidersPage.GetDataProviderMetaAttribute("Lightstone", "dp_version");

            dataProvidersPage.EditDataProvider("Lightstone");

            Assert.AreEqual(common.CONN_STRING + "#/data-provider-detail/"+ id + "/" + version, driver.Url);
        }