public void When_LeagueNameIsEmpty_Then_ValidationError() { var command = new UpdateTeamLeagueMatchGoalCommand { LeagueName = "" }; var validator = new UpdateTeamLeagueMatchGoalCommandValidator(); validator.ShouldHaveValidationErrorFor(x => x.LeagueName, command); }
public void When_MatchGuidIsEmpty_Then_ValidationError() { var command = new UpdateTeamLeagueMatchGoalCommand { LeagueName = "Premier League", MatchGuid = Guid.Empty }; var validator = new UpdateTeamLeagueMatchGoalCommandValidator(); validator.ShouldHaveValidationErrorFor(x => x.MatchGuid, command); }
public void When_GoalGuidIsEmpty_Then_ValidationError() { var command = new UpdateTeamLeagueMatchGoalCommand { LeagueName = "Premier League", MatchGuid = Guid.NewGuid(), TeamName = "Tottenham Hotspur", GoalGuid = Guid.Empty }; var validator = new UpdateTeamLeagueMatchGoalCommandValidator(); validator.ShouldHaveValidationErrorFor(x => x.GoalGuid, command); }