Пример #1
0
        public void GivenTheTeamHasTheFollowingPlayers(Table table)
        {
            var players = PlayerHelper.CreateFrom(table);
            var playersRepositoryStub = Ioc.Get <IPlayersRepository>() as PlayersRepositoryStub;

            playersRepositoryStub.Players.AddRange(players);
        }
Пример #2
0
        public void ThenTheFollowingPlayerIsReturned(Table table)
        {
            var players = PlayerHelper.CreateFrom(table);

            Assert.AreEqual(players.First(), _player);
        }
Пример #3
0
        public void ThenTheFollowingPlayersAreReturned(Table table)
        {
            var players = PlayerHelper.CreateFrom(table);

            CollectionAssert.AreEqual(players, _returnedPlayers);
        }