public function test_getStateOnDate()
 {
     $obm = \Magento\Framework\App\ObjectManager::getInstance();
     /** @var  $call \Praxigento\Downline\Service\Snap\Call */
     $call = $obm->get('Praxigento\\Downline\\Service\\Snap\\Call');
     $req = new Request\GetStateOnDate();
     $req->setDatestamp('20151202');
     /** @var  $resp Response\GetStateOnDate */
     $resp = $call->getStateOnDate($req);
     $this->assertTrue($resp->isSucceed());
 }
 public function test_getStateOnDate()
 {
     /** === Test Data === */
     $dstamp = '20151206';
     $rows = 'rows';
     /** === Setup Mocks === */
     // $rows = $this->_repoSnap->getStateOnDate($dateOn);
     $this->mRepoSnap->shouldReceive('getStateOnDate')->once()->andReturn($rows);
     /** === Call and asserts  === */
     $req = new Request\GetStateOnDate();
     $req->setDatestamp($dstamp);
     $resp = $this->obj->getStateOnDate($req);
     $this->assertTrue($resp->isSucceed());
     $this->assertEquals($rows, $resp->getData());
 }