Example #1
0
 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);
     }
 }
Example #2
0
 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();
     }
 }
Example #3
0
 public MovieCategoriesListView(MovieCategoriesList moviesList)
     : base(moviesList)
 {
     LastCreatedView = this;
 }