Exemple #1
0
        public void NextState()
        {
            Random rnd = new Random();

            if (rnd.Next(2) == 0)
            {
                _grant.SetState(_grant.Rejected);
            }
            else
            {
                _grant.SetState(_grant.Confirmed);
            }
            Console.Clear();
            _grant.ShowState();
        }
Exemple #2
0
 public void NextState()
 {
     _grant.SetState(_grant.UnderConsideration);
     Console.Clear();
     _grant.ShowState();
 }