Exemplo n.º 1
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();
     }
 }
Exemplo n.º 2
0
 public void CreateNewPlay_Does_Not_Give_Play_When_Not_Completed()
 {
     _playFactory.NewPlay(_playerA, true);
     Assert.Multiple(() =>
     {
         var _plays = _playFactory.GetPlays();
         Assert.AreEqual(0, _plays.Count);
         //Assert.AreEqual(_playerA, _plays.First().Player);
     });
 }