public void ThenISeeTheOpenCasesCorrespondToDashboardOpenCasesValue()
        {
            string       openCases    = ScenarioContext.Current.Get <string>("Dashboard Open Cases");
            CaseListPage caseListPage = ((CaseListPage)GetSharedPageObjectFromContext("Case List"));

            caseListPage.GetCurrenttlyOpenCasesNumber().Should().Be(openCases + " Open Cases", "Case List Open Cases corresponds with Dashboard's");
        }
        public void ThenISeeCurrentlyOpenCasesNumberIs()
        {
            //query db to get count of currently open cases
            int expectedCount = 0;
            Dictionary <string, string> parameters = new Dictionary <string, string>();

            //Bring office code from App.config
            parameters.Add("OfficeCode", ConfigurationManager.AppSettings.Get("Office"));

            DataRowCollection results = ExecuteQueryOnDB(Properties.Resources.GetOpenCasesCountByOfficeId, parameters);

            foreach (DataRow result in results)
            {
                expectedCount = result.Field <int>("OpenCasesCount");
            }

            caseListPage.GetCurrenttlyOpenCasesNumber().Should().Be(expectedCount + " Open Cases", "Currently Open Cases count displays and is " + expectedCount);
        }