public function test_delete()
{
$repo = App::make(ScheduleRepository::class);
$schedule = factory(Schedule::class)->create();
$delete = $repo->delete($schedule->id);
$this->assertEquals(1, $delete);
$this->setExpectedException(RepositoryException::class);
$repo->withoutTrashed()->get($schedule->id);
}