public void FindAllPlayers() { // Arrange var TestHelpers = new TestHelpers(); _players = TestHelpers.PopulateListOfPlayers(); var mockRepo = new Mock <IRepository <IPlayer> >(); var displayResults = _players.ToList(); mockRepo.Setup(x => x.FindAll()).Returns(displayResults); var domainServices = new LeagueService(mockRepo.Object); //Act var allPlayers = domainServices.GetAllPlayers(); //Assert allPlayers.Should().BeEquivalentTo(_players.ToList()); }