Exemple #1
0
        protected void RunForm(RecyclerView recyclerView, StringClassForTestingValues testClass)
        {
            formController
                = new NightlightFormController <StringClassForTestingValues>(ref testClass);

            NightlightRecyclerViewAdapter nightlightAdapter = new NightlightRecyclerViewAdapter(ref formController);

            recyclerView.SetAdapter(nightlightAdapter);
        }
Exemple #2
0
        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();
        }
Exemple #3
0
        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();
        }
Exemple #4
0
 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();
 }