Ejemplo n.º 1
0
        public override void Up()
        {
            Execute.Code(database =>
            {
                var existing = SprintProgress.Get(55);
                var compare  = new DateTime(2017, 03, 22, 00, 00, 00);
                if (existing.Any(x => x.DateTime == compare))
                {
                    return(string.Empty);
                }

                database.Insert(new SprintProgressDto {
                    SprintId = 55, DateTime = new DateTime(2017, 03, 22, 00, 00, 00), JsonData = "{\"Points\":{\"Open\":59.5,\"In Progress\":25.5,\"Review\":36.0,\"Reopened\":1.0,\"Fixed\":41.0,\"Other\":3.0},\"Unscheduled\":23.0}"
                });

                return(string.Empty);
            });
        }