public void IsEmptyMealOfCategoryTest() { Assert.AreEqual(_isDeleteCategoryEnabled, _target.GetProperty("IsDeleteCategoryEnabled")); _presentationModel.IsEmptyMealOfCategory("Cola"); Assert.AreEqual(true, _target.GetProperty("IsDeleteCategoryEnabled")); _systemModel.GetCategoryControl().InitializeCategoryList(); _systemModel.InitializeMealList(); _presentationModel.IsEmptyMealOfCategory("主餐"); Assert.AreEqual(false, _target.GetProperty("IsDeleteCategoryEnabled")); }
public void Initialize() { _systemControl = new SystemModel(); _mealControl = _systemControl.GetMealControl(); _categoryControl = _systemControl.GetCategoryControl(); _categoryControl.InitializeCategoryList(); _systemControl.InitializeMealList(); _target = new PrivateObject(_mealControl); }
public void Initialize() { _systemModel = new SystemModel(); _presentationModel = new PresentationFrontSideFormModel(_systemModel); _pageControl = _systemModel.GetPageControl(); _mealControl = _systemModel.GetMealControl(); _categoryControl = _systemModel.GetCategoryControl(); _target = new PrivateObject(_presentationModel); }
public void GetCategoryControlTest() { CategoryControl categoryControl = _model.GetCategoryControl(); }