public function testBindsAttributesForRequestedCategory()
 {
     $categoryId = CustomAttributeCategory::RESERVATION;
     $this->page->_requestedCategoryId = $categoryId;
     $attributes = array(CustomAttribute::Create('abc', CustomAttributeTypes::SINGLE_LINE_TEXTBOX, CustomAttributeCategory::RESERVATION, null, false, null, null, null));
     $this->attributeRepository->expects($this->once())->method('GetByCategory')->with($this->equalTo($categoryId))->will($this->returnValue($attributes));
     $this->presenter->HandleDataRequest('');
     $this->assertSame($attributes, $this->page->_boundAttributes);
 }
 public function ProcessDataRequest($dataRequest)
 {
     $this->presenter->HandleDataRequest($dataRequest);
 }