public void Open(SearchRepositoryModel searchRepositoryModel) { RepositoryItemView view = Search(searchRepositoryModel); view.FullName.Click(); View <RepositoryView>().Description.Text.Should().Be(searchRepositoryModel.Name); }
public RepositoryItemView Search(SearchRepositoryModel searchRepositoryModel) { var homeView = View <DefaultNavigationBarView>(); homeView.Search.Type(searchRepositoryModel.Name); homeView.Search.PressEnter(); var searchResults = Resolve <SearchResultsView>(); RepositoryItemView view = searchResults.Repositories .Where(repository => repository.Name != null) .FirstOrDefault(repository => repository.Name.Text == searchRepositoryModel.Name); view .Should() .NotBeNull(); return(view); }