Exemple #1
0
 public void Properly_constructed_FieldGoal_gives_a_proper_FG()
 {
     _playFactory.NewPlay(_playerA, true);
     _playFactory.ChoosePlayType(PlayType.FieldGoal);
     _playFactory.SelectPoints("3");
     _playFactory.FGResult("Make");
     Assert.Multiple(() =>
     {
         var _plays = _playFactory.GetPlays();
         Assert.AreEqual(1, _plays.Count);
         var _play = _plays.First();
         Assert.AreEqual(_playerA, _play.Player);
         Assert.AreEqual(true, _play.TeamB);
         Assert.AreEqual(3, _play.Points);
     });
 }
        private void ChoosePoints(string points)
        {
            _playFactory.SelectPoints(points);

            ChoosePointsVisibility           = Visibility.Collapsed;
            ChooseFieldGoalOutcomeVisibility = Visibility.Visible;
            InfoText = "Jaki wynik rzutu?";
        }