public void Install() { Class1 = CreateChoicesTest("Class1"); Class2 = CreateChoicesTest("Class2"); Class3 = CreateChoicesTest("Class3"); Class4 = CreateAutoCompleteTest("Class4"); Class5 = CreateAutoCompleteTest("Class5"); Class6 = CreateAutoCompleteTest("Class6"); BoolClass = CreateBoolTest("BoolClass"); EnumClass = CreateEnumTest("EnumClass"); NC1Class = CreateNotContributedTest1("NC1Class"); NC2Class = CreateNotContributedTest2("NC2Class"); HintTestClass = CreateHintTestClass("HintTestClass"); }
public void NullableBoolParameter() { var mocks = new ContextMocks(controller); var btc = new BoolTestClass(); mocks.ViewDataContainer.Object.ViewData.Model = btc; PersistorUtils.CreateAdapter(btc); string s = mocks.GetHtmlHelper<BoolTestClass>().ObjectActionAsDialog<BoolTestClass, bool?>(btc, x => x.TestNullableBoolAction).ToString(); CheckResults("NullableBoolParameter", s); }
public void BoolParameter() { var btc = new BoolTestClass(); SetupViewData(btc); NakedObjectsFramework.NakedObjectManager.CreateAdapter(btc, null, null); string s = mocks.GetHtmlHelper<BoolTestClass>().ObjectActionAsDialog<BoolTestClass, bool>(btc, x => x.TestBoolAction).ToString(); CheckResults("BoolParameter", s); }