public void RetreiveTopTen() { //Arrange var TestHelpers = new TestHelpers(); _players = TestHelpers.PopulateListOfPlayers(); var mockRepo = new Mock <IRepository <IPlayer> >(); var displayResults = _players.OrderByDescending(x => x.Wins).Take(10).ToList(); mockRepo.Setup(x => x.ReturnTopTen()).Returns(displayResults); var domainServices = new LeagueService(mockRepo.Object); //Act var topTen = domainServices.GetTopTenPlayers(); //Assert topTen.ShouldAllBeEquivalentTo(displayResults); topTen.Should().BeInDescendingOrder(); }