Esempio n. 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);
     });
 }
Esempio n. 2
0
 private void CheckInPlayers()
 {
     foreach (Player player in TeamAOnCourt)
     {
         _playFactory.NewPlay(player, false);
         _playFactory.ChoosePlayType(PlayType.CheckIn);
         Plays.Add(_playFactory.GetPlays().First());
         _playFactory.Clear();
     }
     foreach (Player player in TeamBOnCourt)
     {
         _playFactory.NewPlay(player, true);
         _playFactory.ChoosePlayType(PlayType.CheckIn);
         Plays.Add(_playFactory.GetPlays().First());
         _playFactory.Clear();
     }
 }