public void GivenTheTeamHasTheFollowingPlayerStatRecords(Table table) { var playerStats = PlayerYearStatsHelper.CreateFrom(table); var playerYearStatsRepositoryStub = Ioc.Get <IPlayerYearStatsRepository>() as PlayerYearStatsRepositoryStub; playerYearStatsRepositoryStub.PlayerYearStats.AddRange(playerStats); }
public void ThenTheTeamHasTheFollowingPlayerStats(Table table) { var expectedPlayerStats = PlayerYearStatsHelper.CreateFrom(table); CollectionAssert.AreEqual(expectedPlayerStats, _teamStats.PlayerYearStats); }