public void TournamentAggregate_CreateTournament_TournamentAlreadyCreated_ErrorThrown()
        {
            TournamentAggregate aggregate = TournamentTestData.GetCreatedTournamentAggregate();

            Should.Throw <InvalidOperationException>(() =>
            {
                aggregate.CreateTournament(TournamentTestData.TournamentDate,
                                           TournamentTestData.GolfClubId,
                                           TournamentTestData.MeasuredCourseId,
                                           TournamentTestData.MeasuredCourseSSS,
                                           TournamentTestData.Name,
                                           TournamentTestData.PlayerCategoryEnum,
                                           TournamentTestData.TournamentFormatEnum);
            });
        }
        public void TournamentAggregate_SignUpForTournament_PlayerSignedUp()
        {
            TournamentAggregate tournament = TournamentTestData.GetCreatedTournamentAggregate();

            tournament.SignUpForTournament(TournamentTestData.PlayerId);
        }
        public void TournamentAggregate_RecordPlayerScore_PlayerNotSignedUp_ErrorThrown()
        {
            TournamentAggregate aggregate = TournamentTestData.GetCreatedTournamentAggregate();

            Should.Throw <InvalidOperationException>(() => { aggregate.RecordPlayerScore(TournamentTestData.PlayerId, TournamentTestData.PlayingHandicap, TournamentTestData.HoleScores); });
        }