public void CreateMovieCategoriesList() { using (MovieCategoriesList list = (MovieCategoriesList)ModulesManager.Current.OpenModuleObjectDetail(new MovieCategoriesListObject(Session), false)) { MovieCategoriesListView movieCategoriesListView = MovieCategoriesListView.LastCreatedView; Assert.IsNotNull(movieCategoriesListView); Assert.IsNotNull(movieCategoriesListView.Module); Assert.AreEqual(list, movieCategoriesListView.Module); } }
public void CreateMovieCategoriesListAddCategorySave() { using (MovieCategoriesList list = (MovieCategoriesList)ModulesManager.Current.OpenModuleObjectDetail(new MovieCategoriesListObject(Session), false)) { MovieCategoriesListView movieCategoriesListView = MovieCategoriesListView.LastCreatedView; MovieCategoryEdit categoryEdit = list.MovieCategoryEdit; list.CreateCategory(); Assert.AreNotEqual(categoryEdit, list.MovieCategoryEdit); list.Close(); } }
public MovieCategoriesListView(MovieCategoriesList moviesList) : base(moviesList) { LastCreatedView = this; }