protected function LoadValidators($action)
 {
     if ($action == ManageResourceTypesActions::ChangeAttributes) {
         $attributes = $this->GetAttributeValues();
         $this->page->RegisterValidator('attributeValidator', new AttributeValidator($this->attributeService, CustomAttributeCategory::RESOURCE_TYPE, $attributes, $this->page->GetId()));
     }
 }
 public function testDeletesResourceType()
 {
     $id = 9919;
     $this->page->expects($this->once())->method('GetId')->will($this->returnValue($id));
     $this->resourceRepository->expects($this->once())->method('RemoveResourceType')->with($this->equalTo($id));
     $this->presenter->Delete();
 }