예제 #1
0
        public void GivenTheTeamHasTheFollowingPlayerStatRecords(Table table)
        {
            var playerStats = PlayerYearStatsHelper.CreateFrom(table);
            var playerYearStatsRepositoryStub = Ioc.Get <IPlayerYearStatsRepository>() as PlayerYearStatsRepositoryStub;

            playerYearStatsRepositoryStub.PlayerYearStats.AddRange(playerStats);
        }
예제 #2
0
        public void ThenTheTeamHasTheFollowingPlayerStats(Table table)
        {
            var expectedPlayerStats = PlayerYearStatsHelper.CreateFrom(table);

            CollectionAssert.AreEqual(expectedPlayerStats, _teamStats.PlayerYearStats);
        }