Example #1
0
        public void ShowProperty(IEnumerable <string> expectedTitles)
        {
            //Act
            var shownBooks = _result.Model <IEnumerable <PROPERTY> >();

            //Assert
            PropertyAssertions.HomeScreenShouldShow(shownBooks, expectedTitles);
        }
Example #2
0
        public void ShowList(Table expectednameList)
        {
            //Arrange
            var expected = expectednameList.Rows.Select(x => x["PropertyName"]);

            var ShownName = _result.Model <IEnumerable <PROPERTY> >();

            //Assert
            PropertyAssertions.HomeScreenShouldShow(ShownName, expected);
        }
        public void ShowProperty(string expectedTitlesString)
        {
            //Arrange
            var expectedTitles = from t in expectedTitlesString.Split(',')
                                 select t.Trim().Trim('\'');

            //Action
            var ShowProperty = _state.ActionResult.Model <IEnumerable <PROPERTY> >();

            //Assert
            PropertyAssertions.HomeScreenShouldShow(ShowProperty, expectedTitles);
        }
        public void ShowListOfProject(Table showProject)
        {
            //Arrange
            var expectedProjects = showProject.Rows.Select(r => r["PropertyName"]);

            //Action
            var result = ScenarioContext.Current.Get <IEnumerable <PROPERTY> >("Property");

            //var actualProjects = result.Model<IEnumerable<PROPERTY>>();

            //Assert
            PropertyAssertions.HomeScreenShouldShow(result, expectedProjects);
        }