public void PlayerInningService_NullTeamPlayerRepository()
        {
            //Act
            var playerService = new PlayerInningService(null);

            //Assert
            playerService.Should().BeNull();
        }
        public static void ClassInit(TestContext context)
        {
            //Arrange
            PlayerInning = new PlayerInning {
                PlayerName = "PlayerName", TeamId = "TeamId"
            };
            var players = new List <PlayerInning> {
                PlayerInning
            };

            var mockPlayerRepo = new Mock <IRepository <PlayerInning> >();

            mockPlayerRepo.Setup(x => x.Create(It.IsAny <PlayerInning>())).Returns("PlayerInningId");
            mockPlayerRepo.Setup(x => x.GetFilteredList(It.IsAny <string>(), It.IsAny <string>())).Returns(players);
            mockPlayerRepo.Setup(x => x.GetItem(It.IsAny <string>())).Returns(PlayerInning);

            PlayerInningService = new PlayerInningService(mockPlayerRepo.Object);
        }