using System;
using QuizPleaseTest.Boot.Flow;
using QuizPleaseTest.Common.UI;

namespace QuizPleaseTest.Boot.UI
{
    public class MenuUIViewModel : IUIViewModel
    {
        private readonly IMenuRestartSignal _restartSignal;

        public MenuUIViewModel(IMenuRestartSignal restartSignal)
        {
            _restartSignal = restartSignal ?? throw new ArgumentNullException(nameof(restartSignal));
        }

        public void Restart()
        {
            _restartSignal.RequestRestart();
        }
    }
}
