Exemple #1
0
        static void Main(string[] args)
        {
            var testlet = new Testlet("Test Testlet");

            // create random
            List <Item> testItems  = testlet.Randomize(6, 4);
            var         jsonString = JsonConvert.SerializeObject(testItems);

            Console.WriteLine(JValue.Parse(jsonString).ToString(Formatting.Indented));
            Console.ReadKey();
        }
Exemple #2
0
        public static List <Item> CreateTestAndRandomize(string testletId, List <Item> testQuestions)
        {
            Testlet testlet = new Testlet(testletId, testQuestions);

            return(testlet.Randomize());
        }