public void WhenDeletingReminder_ThenPersists()
        {
            var repository = new ReminderRepository(this.GetUnitOfWork());

            Reminder reminder = new Reminder()
            {
                DueDate     = DateTime.UtcNow.AddDays(30),
                DueDistance = 1000,
                Title       = "Test Reminder"
            };

            repository.Create(this.defaultVehicle.VehicleId, reminder);

            var repositoryForDelete = new ReminderRepository(this.GetUnitOfWork());

            Assert.Equal(1, repositoryForDelete.GetRemindersForVehicle(this.defaultVehicle.VehicleId).Count());

            repositoryForDelete.Delete(reminder.ReminderId);

            var repositoryForVerification = new ReminderRepository(this.GetUnitOfWork());
            var returnedReminders         = repositoryForVerification.GetRemindersForVehicle(this.defaultVehicle.VehicleId);

            Assert.NotNull(returnedReminders);
            Assert.Equal(0, returnedReminders.Count());
        }
        public void WhenDeletingReminder_ThenPersists()
        {
            var repository = new ReminderRepository();

            Reminder reminder = new Reminder()
                                    {
                                        DueDate = DateTime.UtcNow.AddDays(30),
                                        DueDistance = 1000,
                                        Title = "Test Reminder"
                                    };

            repository.Create(defaultVehicle.VehicleId, reminder);

            var repositoryForDelete = new ReminderRepository();

            Assert.Equal(1, repositoryForDelete.GetRemindersForVehicle(defaultVehicle.VehicleId).Count());

            repositoryForDelete.Delete(reminder.ReminderId);

            var repositoryForVerification = new ReminderRepository();
            var returnedReminders = repositoryForVerification.GetRemindersForVehicle(defaultVehicle.VehicleId);

            Assert.NotNull(returnedReminders);
            Assert.Equal(0, returnedReminders.Count());
        }