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(); }
public static List <Item> CreateTestAndRandomize(string testletId, List <Item> testQuestions) { Testlet testlet = new Testlet(testletId, testQuestions); return(testlet.Randomize()); }