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

            //Assert
            PropertyAssertions.HomeScreenShouldShow(shownBooks, expectedTitles);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }