コード例 #1
0
        public void ShowProperty(Table expectedProject)
        {
            //Arrange
            var expectedTitles = expectedProject.Rows.Select(r => r["Title"]);

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

            //Assert
            PropertyAssertions.HomeScreenShouldShowInOrder(ShowProperty, expectedTitles);
        }
コード例 #2
0
        public void ShowListOfAgencyProject(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.HomeScreenShouldShowInOrder(result, expectedProjects);
        }