Esempio n. 1
0
        public PossibleMasterGameYear GetPossibleMasterGameYear(MasterGameYear masterGame, HashSet <MasterGame> publisherStandardMasterGames, HashSet <MasterGame> myPublisherMasterGames,
                                                                EligibilitySettings eligibilitySettings)
        {
            var  eligibilityErrors = eligibilitySettings.GameIsEligible(masterGame.MasterGame);
            bool isEligible        = !eligibilityErrors.Any();
            bool taken             = publisherStandardMasterGames.Contains(masterGame.MasterGame);
            bool alreadyOwned      = myPublisherMasterGames.Contains(masterGame.MasterGame);
            bool isReleased        = masterGame.MasterGame.IsReleased(_clock.GetCurrentInstant());
            bool willRelease       = masterGame.WillRelease();
            bool hasScore          = masterGame.MasterGame.CriticScore.HasValue;

            PossibleMasterGameYear possibleMasterGame = new PossibleMasterGameYear(masterGame, taken, alreadyOwned, isEligible, isReleased, willRelease, hasScore);

            return(possibleMasterGame);
        }