public function test_reset()
 {
     $obm = \Magento\Framework\App\ObjectManager::getInstance();
     /** @var  $call \Praxigento\Accounting\Service\Balance\Call */
     $call = $obm->get(\Praxigento\Accounting\Service\IBalance::class);
     $req = new Request\Reset();
     $req->setData(Request\Reset::DATE_FROM, '20151111');
     /** @var  $resp Response\Reset */
     $resp = $call->reset($req);
     $this->assertTrue($resp->isSucceed());
 }
 public function test_reset()
 {
     /** === Test Data === */
     $DATESTAMP_FROM = '20151123';
     $ROWS_DELETED = 5;
     /** === Setup Mocks === */
     // $rows = $this->_repoBalance->delete($where);
     $this->mRepoBalance->shouldReceive('delete')->once()->andReturn($ROWS_DELETED);
     /** === Call and asserts  === */
     $req = new Request\Reset();
     $req->setDateFrom($DATESTAMP_FROM);
     $res = $this->obj->reset($req);
     $this->assertTrue($res->isSucceed());
     $this->assertEquals($ROWS_DELETED, $res->getRowsDeleted());
 }