Exemplo n.º 1
0
    public void Start()
    {
        BusinessLogicLayer bll = new BusinessLogicLayer();
        while (true)
        {
            Question question = bll.GetNextQuestion();
            if (question == null)
            {
                break;
            }
            else
            {
                Console.Clear();
                Console.WriteLine($"Question: {question.Statement}");
                Console.WriteLine($"1: {question.Option1}");
                Console.WriteLine($"2: {question.Option2}");
                Console.WriteLine($"3: {question.Option3}");
                Console.WriteLine($"4: {question.Option4}");
                Console.WriteLine($"Marks: {question.Marks}");

                Console.WriteLine("Please enter your response: ");
                int option = Convert.ToInt32(Console.ReadLine());

                bll.Checkresponse(option);

            }

        }
    }