protected void RunForm(RecyclerView recyclerView, StringClassForTestingValues testClass) { formController = new NightlightFormController <StringClassForTestingValues>(ref testClass); NightlightRecyclerViewAdapter nightlightAdapter = new NightlightRecyclerViewAdapter(ref formController); recyclerView.SetAdapter(nightlightAdapter); }
private static void TestIntegerClasses() { IntegerClassForTestingValues itc = new IntegerClassForTestingValues { }; NightlightFormController <IntegerClassForTestingValues> controller = new NightlightFormController <IntegerClassForTestingValues>(ref itc); NightlightConsoleForm <IntegerClassForTestingValues> consoleForm = new NightlightConsoleForm <IntegerClassForTestingValues>(controller); consoleForm.Run(); }
private static void TestStringClasses() { StringClassForTestingValues stc = new StringClassForTestingValues { }; NightlightFormController <StringClassForTestingValues> controller = new NightlightFormController <StringClassForTestingValues>(ref stc); NightlightConsoleForm <StringClassForTestingValues> consoleForm = new NightlightConsoleForm <StringClassForTestingValues>(controller); consoleForm.Run(); }
public NightlightConsoleForm(NightlightFormController <T> controller) { Controller = controller; }
public void Test_RequiredIsSetToTrue() { StringAttributeObjectWithMinLengthLessThanZero obj = new StringAttributeObjectWithMinLengthLessThanZero(); NightlightFormController <StringAttributeObjectWithMinLengthLessThanZero> formcontroller = new NightlightFormController <StringAttributeObjectWithMinLengthLessThanZero>(ref obj); }
public NightlightRecyclerViewAdapter(ref NightlightFormController <StringClassForTestingValues> formController) { _formController = formController; _nodes = formController.Nodes.ToList(); }