public void GetSprintsWithinDateRangeTest()
        {
            ScrumTimeEntities scrumTimeEntities = new ScrumTimeEntities();
            SprintService     sprintService     = new SprintService(scrumTimeEntities);
            List <Sprint>     sprints           =
                sprintService.GetSprintsWithinDateRange(1, new DateTime(2010, 1, 1),
                                                        new DateTime(2010, 6, 5));

            Assert.AreEqual(5, sprints.Count());
        }
Exemple #2
0
        public ActionResult UpdateCalendar(string startDateRange, string endDateRange)
        {
            DateTime      startDate = DateTime.Parse(startDateRange);
            DateTime      endDate   = DateTime.Parse(endDateRange);
            List <Sprint> sprints   = _SprintService.GetSprintsWithinDateRange(
                SessionHelper.GetCurrentProductId(User.Identity.Name, Session), startDate, endDate);
            List <Release> releases = _ReleaseService.GetReleasesWithinDateRange(
                SessionHelper.GetCurrentProductId(User.Identity.Name, Session), startDate, endDate);
            JsonSchedule jsonSchedule = new JsonSchedule(releases, sprints, startDate, endDate);

            return(new SecureJsonResult(jsonSchedule));
        }