Ejemplo n.º 1
0
        public Season Create2015Season()
        {
            DateTime seasonStartDate = new DateTime( 2015, 4, 5 );
            DateTime seasonEndDate = new DateTime( 2015, 10, 4 );

            DateTime postseasonStartDate = new DateTime( 2015, 10, 6 );
            DateTime postseasonEndDate = new DateTime( 2015, 11, 4 );

            DateTime AllStarGame = new DateTime( 2015, 7, 14 );

            PostSeason postseason = Add2015PostSeason( new PostSeason( postseasonStartDate, postseasonEndDate ) );

            Season season = new Season( seasonStartDate, seasonEndDate, postseason );
            season.AddException( AllStarGame );
            season.ShouldIncludePostSeason = false;

            _dbcontext.InitializeSeason(2015);

            return season;
        }
Ejemplo n.º 2
0
        public Season Create2014Season()
        {
            DateTime seasonStartDate = new DateTime( 2014, 3, 30 );
            DateTime seasonEndDate = new DateTime( 2014, 9, 28 );

            DateTime postseasonStartDate = new DateTime( 2014, 9, 30 );
            DateTime postseasonEndDate = new DateTime( 2014, 10, 29 );

            DateTime AllStarGame = new DateTime( 2014, 7, 15 );

            PostSeason postseason = Add2014PostSeason( new PostSeason( postseasonStartDate, postseasonEndDate ) );

            Season season = new Season( seasonStartDate, seasonEndDate, postseason );
            season.AddException( AllStarGame );
            season.ShouldIncludePostSeason = true;

            season.AddExceptionGame( "2014/03/22/lanmlb-arimlb-1", new DateTime( 2014, 3, 22 ) );
            season.AddExceptionGame( "2014/03/23/lanmlb-arimlb-1", new DateTime( 2014, 3, 23 ) );

            _dbcontext.InitializeSeason( 2014 );

            return season;
        }
Ejemplo n.º 3
0
        public Season Create2012Season()
        {
            DateTime seasonStartDate = new DateTime( 2012, 4, 5 );
            DateTime seasonEndDate = new DateTime( 2012, 10, 3 );

            DateTime postseasonStartDate = new DateTime( 2012, 10, 5 );
            DateTime postseasonEndDate = new DateTime( 2012, 10, 28 );

            DateTime AllStarGame = new DateTime( 2012, 7, 10 );

            PostSeason postseason = Add2012PostSeason( new PostSeason( postseasonStartDate, postseasonEndDate ) );

            Season season = new Season( seasonStartDate, seasonEndDate, postseason );
            season.AddException( AllStarGame );
            season.ShouldIncludePostSeason = true;

            season = this.Add2012SeasonGameExceptions( season );

            _dbcontext.InitializeSeason( 2012 );

            return season;
        }
Ejemplo n.º 4
0
        public Season Create2013Season()
        {
            DateTime seasonStartDate = new DateTime( 2013, 3, 31 );
            DateTime seasonEndDate = new DateTime( 2013, 9, 30 );

            DateTime postseasonStartDate = new DateTime( 2013, 10, 1 );
            DateTime postseasonEndDate = new DateTime( 2013, 10, 30 );

            DateTime AllStarGame = new DateTime( 2013, 7, 16 );

            PostSeason postseason = Add2013PostSeason( new PostSeason( postseasonStartDate, postseasonEndDate ) );

            Season season = new Season( seasonStartDate, seasonEndDate, postseason );
            season.AddException( AllStarGame );
            season.ShouldIncludePostSeason = true;

            _dbcontext.InitializeSeason( 2013 );

            return season;
        }
Ejemplo n.º 5
0
        public Season Create2006Season()
        {
            DateTime seasonStartDate = new DateTime( 2006, 4, 3 );
            DateTime seasonEndDate = new DateTime( 2006, 10, 1 );

            DateTime postseasonStartDate = new DateTime( 2006, 10, 3 );
            DateTime postseasonEndDate = new DateTime( 2006, 10, 27 );

            DateTime AllStarGame = new DateTime( 2006, 7, 11 );

            PostSeason postseason = Add2006PostSeason( new PostSeason( postseasonStartDate, postseasonEndDate ) );

            Season season = new Season( seasonStartDate, seasonEndDate, postseason );
            season.AddException( AllStarGame );
            season.ShouldIncludePostSeason = true;

            season.AddExceptionGame( "gid_2006_04_02_clemlb_chamlb_1", new DateTime( 2006, 4, 2 ) );

            _dbcontext.InitializeSeason( 2006 );

            return season;
        }