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