public void GivenTheTeamHasTheFollowingPlayers(Table table) { var players = PlayerHelper.CreateFrom(table); var playersRepositoryStub = Ioc.Get <IPlayersRepository>() as PlayersRepositoryStub; playersRepositoryStub.Players.AddRange(players); }
public void ThenTheFollowingPlayerIsReturned(Table table) { var players = PlayerHelper.CreateFrom(table); Assert.AreEqual(players.First(), _player); }
public void ThenTheFollowingPlayersAreReturned(Table table) { var players = PlayerHelper.CreateFrom(table); CollectionAssert.AreEqual(players, _returnedPlayers); }