protected function proceed()
 {
     $srv = new DiscountProfilesService();
     switch ($this->action) {
         case 'get':
             $this->succeed($srv->get($this->params['id']));
             break;
         case 'getAll':
             $this->succeed($srv->getAll());
             break;
     }
 }
 /** @depends testCreate
  * @depends testRead
  */
 public function testDelete()
 {
     $prof = new DiscountProfile("Profile", 0.1);
     $srv = new DiscountProfilesService();
     $prof->id = $srv->create($prof);
     $this->assertTrue($srv->delete($prof->id), "Delete failed");
     $this->assertNull($srv->get($prof->id), "Profile is still there");
 }