public void When_LeagueNameIsEmpty_Then_ValidationError()
        {
            var query = new AddTeamLeagueMatchSubstitutionCommand
            {
                LeagueName = ""
            };

            var validator = new AddTeamLeagueMatchSubstitutionCommandValidator();

            validator.ShouldHaveValidationErrorFor(x => x.LeagueName, query);
        }
        public void When_MatchGuidIsEmpty_Then_ValidationError()
        {
            var query = new AddTeamLeagueMatchSubstitutionCommand
            {
                LeagueName = "Premier League",
                MatchGuid  = Guid.Empty
            };

            var validator = new AddTeamLeagueMatchSubstitutionCommandValidator();

            validator.ShouldHaveValidationErrorFor(x => x.MatchGuid, query);
        }
        public void When_MinuteIsEmpty_Then_ValidationError()
        {
            var query = new AddTeamLeagueMatchSubstitutionCommand
            {
                LeagueName = "Premier League",
                MatchGuid  = Guid.NewGuid(),
                TeamName   = "Tottenham Hotspur",
                Minute     = ""
            };

            var validator = new AddTeamLeagueMatchSubstitutionCommandValidator();

            validator.ShouldHaveValidationErrorFor(x => x.Minute, query);
        }