private void GenerateMock(CfSubscriptionQueryResult subscriptionQueryResult, CfQuery query)
 {
     SubscriptionServiceMock.Stub(b => b.QuerySubscriptions(Arg <Query> .Matches(x => x.MaxResults == query.MaxResults &&
                                                                                 x.FirstResult == query.FirstResult)))
     .Return(SubscriptionQueryResultMapper.ToSoapSubscriptionQueryResult(subscriptionQueryResult));
 }
 public CfSubscriptionQueryResult QuerySubscriptions(CfQuery cfQuerySubscriptions)
 {
     return(SubscriptionQueryResultMapper.FromSoapSubscriptionQueryResult(
                SubscriptionService.QuerySubscriptions(new Query(cfQuerySubscriptions))));
 }