public void BestWinRatioIsReturnedAsChampion() { IRepository repo = new FakeRepository(); repo.Create(new Member(1)); Member member1 = repo.GetMemberById(1); repo.Create(new Member(2)); Member member2 = repo.GetMemberById(2); repo.Create(new Competition(1, new List <Member> { member1, member2 })); Competition sut = (Competition)repo.GetCompetitionById(1); sut.Matches.ForEach(x => x.FakePlay()); // Call GetChampion from Competition class Member winner = sut.GetChampion(); Assert.Equal(member2.MemberId, winner.MemberId); }