/**
  * @test update
  */
 public function testUpdateSysAreaAtuacao()
 {
     $sysAreaAtuacao = $this->makeSysAreaAtuacao();
     $fakeSysAreaAtuacao = $this->fakeSysAreaAtuacaoData();
     $updatedSysAreaAtuacao = $this->sysAreaAtuacaoRepo->update($fakeSysAreaAtuacao, $sysAreaAtuacao->id);
     $this->assertModelData($fakeSysAreaAtuacao, $updatedSysAreaAtuacao->toArray());
     $dbSysAreaAtuacao = $this->sysAreaAtuacaoRepo->find($sysAreaAtuacao->id);
     $this->assertModelData($fakeSysAreaAtuacao, $dbSysAreaAtuacao->toArray());
 }
 /**
  * @param int $id
  * @return Response
  *
  * @SWG\Delete(
  *      path="/sysAreaAtuacaos/{id}",
  *      summary="Remove the specified SysAreaAtuacao from storage",
  *      tags={"SysAreaAtuacao"},
  *      description="Delete SysAreaAtuacao",
  *      produces={"application/json"},
  *      @SWG\Parameter(
  *          name="id",
  *          description="id of SysAreaAtuacao",
  *          type="integer",
  *          required=true,
  *          in="path"
  *      ),
  *      @SWG\Response(
  *          response=200,
  *          description="successful operation",
  *          @SWG\Schema(
  *              type="object",
  *              @SWG\Property(
  *                  property="success",
  *                  type="boolean"
  *              ),
  *              @SWG\Property(
  *                  property="data",
  *                  type="string"
  *              ),
  *              @SWG\Property(
  *                  property="message",
  *                  type="string"
  *              )
  *          )
  *      )
  * )
  */
 public function destroy($id)
 {
     /** @var SysAreaAtuacao $sysAreaAtuacao */
     $sysAreaAtuacao = $this->sysAreaAtuacaoRepository->find($id);
     if (empty($sysAreaAtuacao)) {
         return Response::json(ResponseUtil::makeError('SysAreaAtuacao not found'), 404);
     }
     $sysAreaAtuacao->delete();
     return $this->sendResponse($id, 'SysAreaAtuacao deleted successfully');
 }