public new virtual void SetUp()
            {
                base.SetUp();
                CollectionService.Stub(x=>x.GetCollectionByApiKeyAndName(ApiKeyThatIsNotValid, collectionName)).Throw(new ApiKeyNotValidException());

                try
                {
                    ContentAreaService.GetByCollectionNameAndApiKey(ApiKeyThatIsNotValid, collectionName);
                }
                catch (ApiKeyNotValidException ex)
                {
                    exception = ex;
                }
            }
 public new void SetUp()
 {
     base.SetUp();
     ApplicationService.Stub(x => x.GetApplicationByApiKey(apiKey)).Throw(new ApiKeyNotValidException());
     try
     {
         CollectionService.GetCollectionsByApiKey(apiKey);
     }
     catch (ApiKeyNotValidException ex)
     {
         _exception = ex;
     }
 }
 public new virtual void SetUp()
 {
     base.SetUp();
     try
     {
         ApplicationRepository.Stub(x => x.GetByApiKey(apiKeyThatDoesNotExist)).Throw(new ApiKeyNotValidException());
         ApplicationService.GetApplicationByApiKey(apiKeyThatDoesNotExist);
     }
     catch (ApiKeyNotValidException ex)
     {
         exception = ex;
     }
 }
 public new virtual void SetUp()
 {
     base.SetUp();
     string apiKey = "badApiKey";
     ApplicationService.Stub(x => x.GetApplicationByApiKey(apiKey)).Throw(new ApiKeyNotValidException());
     try
     {
         CollectionService.GetCollectionByApiKeyAndName(apiKey, "CollectionName");
     }
     catch (ApiKeyNotValidException ex)
     {
         exception = ex;
     }
 }