public function test_delete()
{
$repo = App::make(TeacherRepository::class);
$teacher = factory(Teacher::class)->create();
$delete = $repo->delete($teacher->id);
$trashed = $repo->onlyTrashed()->get($teacher->id);
$this->assertEquals(1, $delete);
$this->assertInstanceOf(Carbon::class, $trashed->deleted_at);
$this->assertInstanceOf(Teacher::class, $trashed);
$this->setExpectedException(RepositoryException::class);
$repo->withoutTrashed()->get($teacher->id);
}