public void ManagerGetAllTeamsTest()
        {
            Mock<IBaseballRepository> mockRepo = new Mock<IBaseballRepository>();

            mockRepo.Setup(x => x.GetAllTeamsByLeague(It.IsAny<byte>())).Returns(new List<Team>()
            { new Team()
            {
                TeamID = 1,
                LeagueID = 1,
                TeamName = "Cubs",
                Manager = "George Bob"
            }, new Team()
            {
                TeamID = 2,
                LeagueID = 2,
                TeamName = "Braves",
                Manager = "Barry Jordan"
            }
            });

            var manager = new BaseballLeagueManager(mockRepo.Object);

            var response = manager.GetAllTeamsInLeague(It.IsAny<byte>());

            Assert.AreEqual(true, response.Success);
            Assert.AreEqual("Braves", response.Data.FirstOrDefault(x => x.TeamID == 2).TeamName);
        }
        public void ManagerGetAllPlayersTest()
        {
            Mock<IBaseballRepository> mockRepo = new Mock<IBaseballRepository>();

            mockRepo.Setup(x => x.GetAllPlayersByTeam(It.IsAny<int>())).Returns(new List<Player>()
            { new Player()
            {
                PlayerID = 1,
                TeamID = 1,
                PlayerName = "Billy Joe",
                JerseyNumber = 44,
                Position = "RF",
                BattingAverage = .225M,
                YearsPlayed = 5,
            }, new Player()
            {
                PlayerID = 2,
                TeamID = 1,
                PlayerName = "Robert Francesco",
                JerseyNumber = 22,
                Position = "1B",
                BattingAverage = .242M,
                YearsPlayed = 3,
            }
            });

            var manager = new BaseballLeagueManager(mockRepo.Object);

            var response = manager.GetAllPlayersInTeam(It.IsAny<int>());

            Assert.AreEqual(true, response.Success);
            Assert.AreEqual("Billy Joe", response.Data.FirstOrDefault(x => x.PlayerID == 1).PlayerName);
        }