public void WhenRetrievingJsonImminentReminders_ThenImminentReminders()
        {
            ReminderController controller = GetTestableReminderController();

            var dueDate   = new DateTime(2010, 12, 1, 0, 0, 0, DateTimeKind.Utc);
            var reminders = new[]
            {
                new ImminentReminderModel(new Vehicle(),
                                          new Reminder
                {
                    ReminderId = 1,
                    VehicleId  = defaultVehicleId,
                    Title      = "Reminder1",
                    DueDate    = dueDate
                }, isOverdue: true),
                //new ReminderFormModel {ReminderId = 2, VehicleId = defaultVehicleId, Title = "Reminder2", DueDistance = 1000},
                //new ReminderFormModel {ReminderId = 3, VehicleId = defaultVehicleId, Title = "Reminder3", DueDate = dueDate, DueDistance = 1000},
            };

            MockHandlerFor(
                () => new Mock <GetImminentRemindersForUser>(null, null),
                x => x
                .Setup(h => h.Execute(_defaultUser.UserId, It.IsAny <DateTime>(), 0))
                .Returns(reminders));

            MockHandlerFor(
                () => new Mock <GetVehicleById>(null),
                x => x
                .Setup(h => h.Execute(_defaultUser.UserId, defaultVehicleId))
                .Returns(new VehicleModel(
                             new Vehicle {
                VehicleId = defaultVehicleId, Name = "Vehicle"
            },
                             new VehicleStatisticsModel())));

            JsonResult result = controller.JsonImminentReminders();

            Assert.NotNull(result);

            var actualModel = result.Data as IEnumerable <ImminentReminderModel>;

            Assert.NotNull(actualModel);
            Assert.Equal(reminders.Count(), actualModel.Count());
        }