/**
  * @test create
  */
 public function testCreateSysAreaAtuacao()
 {
     $sysAreaAtuacao = $this->fakeSysAreaAtuacaoData();
     $createdSysAreaAtuacao = $this->sysAreaAtuacaoRepo->create($sysAreaAtuacao);
     $createdSysAreaAtuacao = $createdSysAreaAtuacao->toArray();
     $this->assertArrayHasKey('id', $createdSysAreaAtuacao);
     $this->assertNotNull($createdSysAreaAtuacao['id'], 'Created SysAreaAtuacao must have id specified');
     $this->assertNotNull(SysAreaAtuacao::find($createdSysAreaAtuacao['id']), 'SysAreaAtuacao with given id must be in DB');
     $this->assertModelData($sysAreaAtuacao, $createdSysAreaAtuacao);
 }
 /**
  * @param CreateSysAreaAtuacaoAPIRequest $request
  * @return Response
  *
  * @SWG\Post(
  *      path="/sysAreaAtuacaos",
  *      summary="Store a newly created SysAreaAtuacao in storage",
  *      tags={"SysAreaAtuacao"},
  *      description="Store SysAreaAtuacao",
  *      produces={"application/json"},
  *      @SWG\Parameter(
  *          name="body",
  *          in="body",
  *          description="SysAreaAtuacao that should be stored",
  *          required=false,
  *          @SWG\Schema(ref="#/definitions/SysAreaAtuacao")
  *      ),
  *      @SWG\Response(
  *          response=200,
  *          description="successful operation",
  *          @SWG\Schema(
  *              type="object",
  *              @SWG\Property(
  *                  property="success",
  *                  type="boolean"
  *              ),
  *              @SWG\Property(
  *                  property="data",
  *                  ref="#/definitions/SysAreaAtuacao"
  *              ),
  *              @SWG\Property(
  *                  property="message",
  *                  type="string"
  *              )
  *          )
  *      )
  * )
  */
 public function store(CreateSysAreaAtuacaoAPIRequest $request)
 {
     $input = $request->all();
     $sysAreaAtuacaos = $this->sysAreaAtuacaoRepository->create($input);
     return $this->sendResponse($sysAreaAtuacaos->toArray(), 'SysAreaAtuacao saved successfully');
 }