private static MasterGame CreateMasterGame(string guid, string name, string estimatedReleaseDate, LocalDate sortableEstimatedReleaseDate, LocalDate?releaseDate, int?openCriticID, decimal?criticScore, LocalDate minimumReleaseDate, int eligibilityLevelID, bool yearlyInstallment, bool earlyAccess, bool freeToPlay, bool releasedInternationally, bool expansionPack, string boxartFileName, string firstCriticScoreTimestamp, bool doNotRefreshDate, bool doNotRefreshAnything, string addedTimestamp) { EligibilityLevel eligibilityLevel = EligibilityLevelFactory.GetEligibilityLevels().Single(x => x.Level == eligibilityLevelID); var eligibilitySettings = new EligibilitySettings(eligibilityLevel, false, false, false, false, false, false); var game = new MasterGame(Guid.Parse(guid), name, estimatedReleaseDate, sortableEstimatedReleaseDate, releaseDate, openCriticID, criticScore, minimumReleaseDate, eligibilitySettings, boxartFileName, InstantPattern.ExtendedIso.Parse(firstCriticScoreTimestamp).GetValueOrThrow(), doNotRefreshDate, doNotRefreshAnything, InstantPattern.ExtendedIso.Parse(addedTimestamp).GetValueOrThrow()); return(game); }
public static List <LeagueYear> GetLeagueYears() { var leagues = GetLeagues(); var eligibilityLevel = EligibilityLevelFactory.GetEligibilityLevels().Single(x => x.Level == 0); List <LeagueYear> leagueYears = new List <LeagueYear>(); foreach (var league in leagues) { var eligibilitySettings = new EligibilitySettings(eligibilityLevel, true, false, true, false, false); var eligibilityOverrides = new List <EligibilityOverride>(); LeagueYear year = new LeagueYear(league, 2019, new LeagueOptions(12, 6, 1, 2, -1, 0, false, eligibilitySettings, DraftSystem.Flexible, PickupSystem.Budget, ScoringSystem.GetScoringSystem("Standard"), true), PlayStatus.DraftFinal, eligibilityOverrides); leagueYears.Add(year); } return(leagueYears); }