github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/cf/actors/servicebuilder/servicebuilderfakes/fake_service_builder.go (about)

     1  // Code generated by counterfeiter. DO NOT EDIT.
     2  package servicebuilderfakes
     3  
     4  import (
     5  	"sync"
     6  
     7  	"code.cloudfoundry.org/cli/cf/actors/servicebuilder"
     8  	"code.cloudfoundry.org/cli/cf/models"
     9  )
    10  
    11  type FakeServiceBuilder struct {
    12  	GetAllServicesStub        func() ([]models.ServiceOffering, error)
    13  	getAllServicesMutex       sync.RWMutex
    14  	getAllServicesArgsForCall []struct {
    15  	}
    16  	getAllServicesReturns struct {
    17  		result1 []models.ServiceOffering
    18  		result2 error
    19  	}
    20  	getAllServicesReturnsOnCall map[int]struct {
    21  		result1 []models.ServiceOffering
    22  		result2 error
    23  	}
    24  	GetAllServicesWithPlansStub        func() ([]models.ServiceOffering, error)
    25  	getAllServicesWithPlansMutex       sync.RWMutex
    26  	getAllServicesWithPlansArgsForCall []struct {
    27  	}
    28  	getAllServicesWithPlansReturns struct {
    29  		result1 []models.ServiceOffering
    30  		result2 error
    31  	}
    32  	getAllServicesWithPlansReturnsOnCall map[int]struct {
    33  		result1 []models.ServiceOffering
    34  		result2 error
    35  	}
    36  	GetServiceByNameForOrgStub        func(string, string) (models.ServiceOffering, error)
    37  	getServiceByNameForOrgMutex       sync.RWMutex
    38  	getServiceByNameForOrgArgsForCall []struct {
    39  		arg1 string
    40  		arg2 string
    41  	}
    42  	getServiceByNameForOrgReturns struct {
    43  		result1 models.ServiceOffering
    44  		result2 error
    45  	}
    46  	getServiceByNameForOrgReturnsOnCall map[int]struct {
    47  		result1 models.ServiceOffering
    48  		result2 error
    49  	}
    50  	GetServiceByNameForSpaceStub        func(string, string) (models.ServiceOffering, error)
    51  	getServiceByNameForSpaceMutex       sync.RWMutex
    52  	getServiceByNameForSpaceArgsForCall []struct {
    53  		arg1 string
    54  		arg2 string
    55  	}
    56  	getServiceByNameForSpaceReturns struct {
    57  		result1 models.ServiceOffering
    58  		result2 error
    59  	}
    60  	getServiceByNameForSpaceReturnsOnCall map[int]struct {
    61  		result1 models.ServiceOffering
    62  		result2 error
    63  	}
    64  	GetServiceByNameForSpaceWithPlansStub        func(string, string) (models.ServiceOffering, error)
    65  	getServiceByNameForSpaceWithPlansMutex       sync.RWMutex
    66  	getServiceByNameForSpaceWithPlansArgsForCall []struct {
    67  		arg1 string
    68  		arg2 string
    69  	}
    70  	getServiceByNameForSpaceWithPlansReturns struct {
    71  		result1 models.ServiceOffering
    72  		result2 error
    73  	}
    74  	getServiceByNameForSpaceWithPlansReturnsOnCall map[int]struct {
    75  		result1 models.ServiceOffering
    76  		result2 error
    77  	}
    78  	GetServiceByNameWithPlansStub        func(string) (models.ServiceOffering, error)
    79  	getServiceByNameWithPlansMutex       sync.RWMutex
    80  	getServiceByNameWithPlansArgsForCall []struct {
    81  		arg1 string
    82  	}
    83  	getServiceByNameWithPlansReturns struct {
    84  		result1 models.ServiceOffering
    85  		result2 error
    86  	}
    87  	getServiceByNameWithPlansReturnsOnCall map[int]struct {
    88  		result1 models.ServiceOffering
    89  		result2 error
    90  	}
    91  	GetServiceByNameWithPlansWithOrgNamesStub        func(string) (models.ServiceOffering, error)
    92  	getServiceByNameWithPlansWithOrgNamesMutex       sync.RWMutex
    93  	getServiceByNameWithPlansWithOrgNamesArgsForCall []struct {
    94  		arg1 string
    95  	}
    96  	getServiceByNameWithPlansWithOrgNamesReturns struct {
    97  		result1 models.ServiceOffering
    98  		result2 error
    99  	}
   100  	getServiceByNameWithPlansWithOrgNamesReturnsOnCall map[int]struct {
   101  		result1 models.ServiceOffering
   102  		result2 error
   103  	}
   104  	GetServiceVisibleToOrgStub        func(string, string) (models.ServiceOffering, error)
   105  	getServiceVisibleToOrgMutex       sync.RWMutex
   106  	getServiceVisibleToOrgArgsForCall []struct {
   107  		arg1 string
   108  		arg2 string
   109  	}
   110  	getServiceVisibleToOrgReturns struct {
   111  		result1 models.ServiceOffering
   112  		result2 error
   113  	}
   114  	getServiceVisibleToOrgReturnsOnCall map[int]struct {
   115  		result1 models.ServiceOffering
   116  		result2 error
   117  	}
   118  	GetServicesByNameForSpaceWithPlansStub        func(string, string) (models.ServiceOfferings, error)
   119  	getServicesByNameForSpaceWithPlansMutex       sync.RWMutex
   120  	getServicesByNameForSpaceWithPlansArgsForCall []struct {
   121  		arg1 string
   122  		arg2 string
   123  	}
   124  	getServicesByNameForSpaceWithPlansReturns struct {
   125  		result1 models.ServiceOfferings
   126  		result2 error
   127  	}
   128  	getServicesByNameForSpaceWithPlansReturnsOnCall map[int]struct {
   129  		result1 models.ServiceOfferings
   130  		result2 error
   131  	}
   132  	GetServicesForBrokerStub        func(string) ([]models.ServiceOffering, error)
   133  	getServicesForBrokerMutex       sync.RWMutex
   134  	getServicesForBrokerArgsForCall []struct {
   135  		arg1 string
   136  	}
   137  	getServicesForBrokerReturns struct {
   138  		result1 []models.ServiceOffering
   139  		result2 error
   140  	}
   141  	getServicesForBrokerReturnsOnCall map[int]struct {
   142  		result1 []models.ServiceOffering
   143  		result2 error
   144  	}
   145  	GetServicesForManyBrokersStub        func([]string) ([]models.ServiceOffering, error)
   146  	getServicesForManyBrokersMutex       sync.RWMutex
   147  	getServicesForManyBrokersArgsForCall []struct {
   148  		arg1 []string
   149  	}
   150  	getServicesForManyBrokersReturns struct {
   151  		result1 []models.ServiceOffering
   152  		result2 error
   153  	}
   154  	getServicesForManyBrokersReturnsOnCall map[int]struct {
   155  		result1 []models.ServiceOffering
   156  		result2 error
   157  	}
   158  	GetServicesForSpaceStub        func(string) ([]models.ServiceOffering, error)
   159  	getServicesForSpaceMutex       sync.RWMutex
   160  	getServicesForSpaceArgsForCall []struct {
   161  		arg1 string
   162  	}
   163  	getServicesForSpaceReturns struct {
   164  		result1 []models.ServiceOffering
   165  		result2 error
   166  	}
   167  	getServicesForSpaceReturnsOnCall map[int]struct {
   168  		result1 []models.ServiceOffering
   169  		result2 error
   170  	}
   171  	GetServicesForSpaceWithPlansStub        func(string) ([]models.ServiceOffering, error)
   172  	getServicesForSpaceWithPlansMutex       sync.RWMutex
   173  	getServicesForSpaceWithPlansArgsForCall []struct {
   174  		arg1 string
   175  	}
   176  	getServicesForSpaceWithPlansReturns struct {
   177  		result1 []models.ServiceOffering
   178  		result2 error
   179  	}
   180  	getServicesForSpaceWithPlansReturnsOnCall map[int]struct {
   181  		result1 []models.ServiceOffering
   182  		result2 error
   183  	}
   184  	GetServicesVisibleToOrgStub        func(string) ([]models.ServiceOffering, error)
   185  	getServicesVisibleToOrgMutex       sync.RWMutex
   186  	getServicesVisibleToOrgArgsForCall []struct {
   187  		arg1 string
   188  	}
   189  	getServicesVisibleToOrgReturns struct {
   190  		result1 []models.ServiceOffering
   191  		result2 error
   192  	}
   193  	getServicesVisibleToOrgReturnsOnCall map[int]struct {
   194  		result1 []models.ServiceOffering
   195  		result2 error
   196  	}
   197  	invocations      map[string][][]interface{}
   198  	invocationsMutex sync.RWMutex
   199  }
   200  
   201  func (fake *FakeServiceBuilder) GetAllServices() ([]models.ServiceOffering, error) {
   202  	fake.getAllServicesMutex.Lock()
   203  	ret, specificReturn := fake.getAllServicesReturnsOnCall[len(fake.getAllServicesArgsForCall)]
   204  	fake.getAllServicesArgsForCall = append(fake.getAllServicesArgsForCall, struct {
   205  	}{})
   206  	fake.recordInvocation("GetAllServices", []interface{}{})
   207  	fake.getAllServicesMutex.Unlock()
   208  	if fake.GetAllServicesStub != nil {
   209  		return fake.GetAllServicesStub()
   210  	}
   211  	if specificReturn {
   212  		return ret.result1, ret.result2
   213  	}
   214  	fakeReturns := fake.getAllServicesReturns
   215  	return fakeReturns.result1, fakeReturns.result2
   216  }
   217  
   218  func (fake *FakeServiceBuilder) GetAllServicesCallCount() int {
   219  	fake.getAllServicesMutex.RLock()
   220  	defer fake.getAllServicesMutex.RUnlock()
   221  	return len(fake.getAllServicesArgsForCall)
   222  }
   223  
   224  func (fake *FakeServiceBuilder) GetAllServicesCalls(stub func() ([]models.ServiceOffering, error)) {
   225  	fake.getAllServicesMutex.Lock()
   226  	defer fake.getAllServicesMutex.Unlock()
   227  	fake.GetAllServicesStub = stub
   228  }
   229  
   230  func (fake *FakeServiceBuilder) GetAllServicesReturns(result1 []models.ServiceOffering, result2 error) {
   231  	fake.getAllServicesMutex.Lock()
   232  	defer fake.getAllServicesMutex.Unlock()
   233  	fake.GetAllServicesStub = nil
   234  	fake.getAllServicesReturns = struct {
   235  		result1 []models.ServiceOffering
   236  		result2 error
   237  	}{result1, result2}
   238  }
   239  
   240  func (fake *FakeServiceBuilder) GetAllServicesReturnsOnCall(i int, result1 []models.ServiceOffering, result2 error) {
   241  	fake.getAllServicesMutex.Lock()
   242  	defer fake.getAllServicesMutex.Unlock()
   243  	fake.GetAllServicesStub = nil
   244  	if fake.getAllServicesReturnsOnCall == nil {
   245  		fake.getAllServicesReturnsOnCall = make(map[int]struct {
   246  			result1 []models.ServiceOffering
   247  			result2 error
   248  		})
   249  	}
   250  	fake.getAllServicesReturnsOnCall[i] = struct {
   251  		result1 []models.ServiceOffering
   252  		result2 error
   253  	}{result1, result2}
   254  }
   255  
   256  func (fake *FakeServiceBuilder) GetAllServicesWithPlans() ([]models.ServiceOffering, error) {
   257  	fake.getAllServicesWithPlansMutex.Lock()
   258  	ret, specificReturn := fake.getAllServicesWithPlansReturnsOnCall[len(fake.getAllServicesWithPlansArgsForCall)]
   259  	fake.getAllServicesWithPlansArgsForCall = append(fake.getAllServicesWithPlansArgsForCall, struct {
   260  	}{})
   261  	fake.recordInvocation("GetAllServicesWithPlans", []interface{}{})
   262  	fake.getAllServicesWithPlansMutex.Unlock()
   263  	if fake.GetAllServicesWithPlansStub != nil {
   264  		return fake.GetAllServicesWithPlansStub()
   265  	}
   266  	if specificReturn {
   267  		return ret.result1, ret.result2
   268  	}
   269  	fakeReturns := fake.getAllServicesWithPlansReturns
   270  	return fakeReturns.result1, fakeReturns.result2
   271  }
   272  
   273  func (fake *FakeServiceBuilder) GetAllServicesWithPlansCallCount() int {
   274  	fake.getAllServicesWithPlansMutex.RLock()
   275  	defer fake.getAllServicesWithPlansMutex.RUnlock()
   276  	return len(fake.getAllServicesWithPlansArgsForCall)
   277  }
   278  
   279  func (fake *FakeServiceBuilder) GetAllServicesWithPlansCalls(stub func() ([]models.ServiceOffering, error)) {
   280  	fake.getAllServicesWithPlansMutex.Lock()
   281  	defer fake.getAllServicesWithPlansMutex.Unlock()
   282  	fake.GetAllServicesWithPlansStub = stub
   283  }
   284  
   285  func (fake *FakeServiceBuilder) GetAllServicesWithPlansReturns(result1 []models.ServiceOffering, result2 error) {
   286  	fake.getAllServicesWithPlansMutex.Lock()
   287  	defer fake.getAllServicesWithPlansMutex.Unlock()
   288  	fake.GetAllServicesWithPlansStub = nil
   289  	fake.getAllServicesWithPlansReturns = struct {
   290  		result1 []models.ServiceOffering
   291  		result2 error
   292  	}{result1, result2}
   293  }
   294  
   295  func (fake *FakeServiceBuilder) GetAllServicesWithPlansReturnsOnCall(i int, result1 []models.ServiceOffering, result2 error) {
   296  	fake.getAllServicesWithPlansMutex.Lock()
   297  	defer fake.getAllServicesWithPlansMutex.Unlock()
   298  	fake.GetAllServicesWithPlansStub = nil
   299  	if fake.getAllServicesWithPlansReturnsOnCall == nil {
   300  		fake.getAllServicesWithPlansReturnsOnCall = make(map[int]struct {
   301  			result1 []models.ServiceOffering
   302  			result2 error
   303  		})
   304  	}
   305  	fake.getAllServicesWithPlansReturnsOnCall[i] = struct {
   306  		result1 []models.ServiceOffering
   307  		result2 error
   308  	}{result1, result2}
   309  }
   310  
   311  func (fake *FakeServiceBuilder) GetServiceByNameForOrg(arg1 string, arg2 string) (models.ServiceOffering, error) {
   312  	fake.getServiceByNameForOrgMutex.Lock()
   313  	ret, specificReturn := fake.getServiceByNameForOrgReturnsOnCall[len(fake.getServiceByNameForOrgArgsForCall)]
   314  	fake.getServiceByNameForOrgArgsForCall = append(fake.getServiceByNameForOrgArgsForCall, struct {
   315  		arg1 string
   316  		arg2 string
   317  	}{arg1, arg2})
   318  	fake.recordInvocation("GetServiceByNameForOrg", []interface{}{arg1, arg2})
   319  	fake.getServiceByNameForOrgMutex.Unlock()
   320  	if fake.GetServiceByNameForOrgStub != nil {
   321  		return fake.GetServiceByNameForOrgStub(arg1, arg2)
   322  	}
   323  	if specificReturn {
   324  		return ret.result1, ret.result2
   325  	}
   326  	fakeReturns := fake.getServiceByNameForOrgReturns
   327  	return fakeReturns.result1, fakeReturns.result2
   328  }
   329  
   330  func (fake *FakeServiceBuilder) GetServiceByNameForOrgCallCount() int {
   331  	fake.getServiceByNameForOrgMutex.RLock()
   332  	defer fake.getServiceByNameForOrgMutex.RUnlock()
   333  	return len(fake.getServiceByNameForOrgArgsForCall)
   334  }
   335  
   336  func (fake *FakeServiceBuilder) GetServiceByNameForOrgCalls(stub func(string, string) (models.ServiceOffering, error)) {
   337  	fake.getServiceByNameForOrgMutex.Lock()
   338  	defer fake.getServiceByNameForOrgMutex.Unlock()
   339  	fake.GetServiceByNameForOrgStub = stub
   340  }
   341  
   342  func (fake *FakeServiceBuilder) GetServiceByNameForOrgArgsForCall(i int) (string, string) {
   343  	fake.getServiceByNameForOrgMutex.RLock()
   344  	defer fake.getServiceByNameForOrgMutex.RUnlock()
   345  	argsForCall := fake.getServiceByNameForOrgArgsForCall[i]
   346  	return argsForCall.arg1, argsForCall.arg2
   347  }
   348  
   349  func (fake *FakeServiceBuilder) GetServiceByNameForOrgReturns(result1 models.ServiceOffering, result2 error) {
   350  	fake.getServiceByNameForOrgMutex.Lock()
   351  	defer fake.getServiceByNameForOrgMutex.Unlock()
   352  	fake.GetServiceByNameForOrgStub = nil
   353  	fake.getServiceByNameForOrgReturns = struct {
   354  		result1 models.ServiceOffering
   355  		result2 error
   356  	}{result1, result2}
   357  }
   358  
   359  func (fake *FakeServiceBuilder) GetServiceByNameForOrgReturnsOnCall(i int, result1 models.ServiceOffering, result2 error) {
   360  	fake.getServiceByNameForOrgMutex.Lock()
   361  	defer fake.getServiceByNameForOrgMutex.Unlock()
   362  	fake.GetServiceByNameForOrgStub = nil
   363  	if fake.getServiceByNameForOrgReturnsOnCall == nil {
   364  		fake.getServiceByNameForOrgReturnsOnCall = make(map[int]struct {
   365  			result1 models.ServiceOffering
   366  			result2 error
   367  		})
   368  	}
   369  	fake.getServiceByNameForOrgReturnsOnCall[i] = struct {
   370  		result1 models.ServiceOffering
   371  		result2 error
   372  	}{result1, result2}
   373  }
   374  
   375  func (fake *FakeServiceBuilder) GetServiceByNameForSpace(arg1 string, arg2 string) (models.ServiceOffering, error) {
   376  	fake.getServiceByNameForSpaceMutex.Lock()
   377  	ret, specificReturn := fake.getServiceByNameForSpaceReturnsOnCall[len(fake.getServiceByNameForSpaceArgsForCall)]
   378  	fake.getServiceByNameForSpaceArgsForCall = append(fake.getServiceByNameForSpaceArgsForCall, struct {
   379  		arg1 string
   380  		arg2 string
   381  	}{arg1, arg2})
   382  	fake.recordInvocation("GetServiceByNameForSpace", []interface{}{arg1, arg2})
   383  	fake.getServiceByNameForSpaceMutex.Unlock()
   384  	if fake.GetServiceByNameForSpaceStub != nil {
   385  		return fake.GetServiceByNameForSpaceStub(arg1, arg2)
   386  	}
   387  	if specificReturn {
   388  		return ret.result1, ret.result2
   389  	}
   390  	fakeReturns := fake.getServiceByNameForSpaceReturns
   391  	return fakeReturns.result1, fakeReturns.result2
   392  }
   393  
   394  func (fake *FakeServiceBuilder) GetServiceByNameForSpaceCallCount() int {
   395  	fake.getServiceByNameForSpaceMutex.RLock()
   396  	defer fake.getServiceByNameForSpaceMutex.RUnlock()
   397  	return len(fake.getServiceByNameForSpaceArgsForCall)
   398  }
   399  
   400  func (fake *FakeServiceBuilder) GetServiceByNameForSpaceCalls(stub func(string, string) (models.ServiceOffering, error)) {
   401  	fake.getServiceByNameForSpaceMutex.Lock()
   402  	defer fake.getServiceByNameForSpaceMutex.Unlock()
   403  	fake.GetServiceByNameForSpaceStub = stub
   404  }
   405  
   406  func (fake *FakeServiceBuilder) GetServiceByNameForSpaceArgsForCall(i int) (string, string) {
   407  	fake.getServiceByNameForSpaceMutex.RLock()
   408  	defer fake.getServiceByNameForSpaceMutex.RUnlock()
   409  	argsForCall := fake.getServiceByNameForSpaceArgsForCall[i]
   410  	return argsForCall.arg1, argsForCall.arg2
   411  }
   412  
   413  func (fake *FakeServiceBuilder) GetServiceByNameForSpaceReturns(result1 models.ServiceOffering, result2 error) {
   414  	fake.getServiceByNameForSpaceMutex.Lock()
   415  	defer fake.getServiceByNameForSpaceMutex.Unlock()
   416  	fake.GetServiceByNameForSpaceStub = nil
   417  	fake.getServiceByNameForSpaceReturns = struct {
   418  		result1 models.ServiceOffering
   419  		result2 error
   420  	}{result1, result2}
   421  }
   422  
   423  func (fake *FakeServiceBuilder) GetServiceByNameForSpaceReturnsOnCall(i int, result1 models.ServiceOffering, result2 error) {
   424  	fake.getServiceByNameForSpaceMutex.Lock()
   425  	defer fake.getServiceByNameForSpaceMutex.Unlock()
   426  	fake.GetServiceByNameForSpaceStub = nil
   427  	if fake.getServiceByNameForSpaceReturnsOnCall == nil {
   428  		fake.getServiceByNameForSpaceReturnsOnCall = make(map[int]struct {
   429  			result1 models.ServiceOffering
   430  			result2 error
   431  		})
   432  	}
   433  	fake.getServiceByNameForSpaceReturnsOnCall[i] = struct {
   434  		result1 models.ServiceOffering
   435  		result2 error
   436  	}{result1, result2}
   437  }
   438  
   439  func (fake *FakeServiceBuilder) GetServiceByNameForSpaceWithPlans(arg1 string, arg2 string) (models.ServiceOffering, error) {
   440  	fake.getServiceByNameForSpaceWithPlansMutex.Lock()
   441  	ret, specificReturn := fake.getServiceByNameForSpaceWithPlansReturnsOnCall[len(fake.getServiceByNameForSpaceWithPlansArgsForCall)]
   442  	fake.getServiceByNameForSpaceWithPlansArgsForCall = append(fake.getServiceByNameForSpaceWithPlansArgsForCall, struct {
   443  		arg1 string
   444  		arg2 string
   445  	}{arg1, arg2})
   446  	fake.recordInvocation("GetServiceByNameForSpaceWithPlans", []interface{}{arg1, arg2})
   447  	fake.getServiceByNameForSpaceWithPlansMutex.Unlock()
   448  	if fake.GetServiceByNameForSpaceWithPlansStub != nil {
   449  		return fake.GetServiceByNameForSpaceWithPlansStub(arg1, arg2)
   450  	}
   451  	if specificReturn {
   452  		return ret.result1, ret.result2
   453  	}
   454  	fakeReturns := fake.getServiceByNameForSpaceWithPlansReturns
   455  	return fakeReturns.result1, fakeReturns.result2
   456  }
   457  
   458  func (fake *FakeServiceBuilder) GetServiceByNameForSpaceWithPlansCallCount() int {
   459  	fake.getServiceByNameForSpaceWithPlansMutex.RLock()
   460  	defer fake.getServiceByNameForSpaceWithPlansMutex.RUnlock()
   461  	return len(fake.getServiceByNameForSpaceWithPlansArgsForCall)
   462  }
   463  
   464  func (fake *FakeServiceBuilder) GetServiceByNameForSpaceWithPlansCalls(stub func(string, string) (models.ServiceOffering, error)) {
   465  	fake.getServiceByNameForSpaceWithPlansMutex.Lock()
   466  	defer fake.getServiceByNameForSpaceWithPlansMutex.Unlock()
   467  	fake.GetServiceByNameForSpaceWithPlansStub = stub
   468  }
   469  
   470  func (fake *FakeServiceBuilder) GetServiceByNameForSpaceWithPlansArgsForCall(i int) (string, string) {
   471  	fake.getServiceByNameForSpaceWithPlansMutex.RLock()
   472  	defer fake.getServiceByNameForSpaceWithPlansMutex.RUnlock()
   473  	argsForCall := fake.getServiceByNameForSpaceWithPlansArgsForCall[i]
   474  	return argsForCall.arg1, argsForCall.arg2
   475  }
   476  
   477  func (fake *FakeServiceBuilder) GetServiceByNameForSpaceWithPlansReturns(result1 models.ServiceOffering, result2 error) {
   478  	fake.getServiceByNameForSpaceWithPlansMutex.Lock()
   479  	defer fake.getServiceByNameForSpaceWithPlansMutex.Unlock()
   480  	fake.GetServiceByNameForSpaceWithPlansStub = nil
   481  	fake.getServiceByNameForSpaceWithPlansReturns = struct {
   482  		result1 models.ServiceOffering
   483  		result2 error
   484  	}{result1, result2}
   485  }
   486  
   487  func (fake *FakeServiceBuilder) GetServiceByNameForSpaceWithPlansReturnsOnCall(i int, result1 models.ServiceOffering, result2 error) {
   488  	fake.getServiceByNameForSpaceWithPlansMutex.Lock()
   489  	defer fake.getServiceByNameForSpaceWithPlansMutex.Unlock()
   490  	fake.GetServiceByNameForSpaceWithPlansStub = nil
   491  	if fake.getServiceByNameForSpaceWithPlansReturnsOnCall == nil {
   492  		fake.getServiceByNameForSpaceWithPlansReturnsOnCall = make(map[int]struct {
   493  			result1 models.ServiceOffering
   494  			result2 error
   495  		})
   496  	}
   497  	fake.getServiceByNameForSpaceWithPlansReturnsOnCall[i] = struct {
   498  		result1 models.ServiceOffering
   499  		result2 error
   500  	}{result1, result2}
   501  }
   502  
   503  func (fake *FakeServiceBuilder) GetServiceByNameWithPlans(arg1 string) (models.ServiceOffering, error) {
   504  	fake.getServiceByNameWithPlansMutex.Lock()
   505  	ret, specificReturn := fake.getServiceByNameWithPlansReturnsOnCall[len(fake.getServiceByNameWithPlansArgsForCall)]
   506  	fake.getServiceByNameWithPlansArgsForCall = append(fake.getServiceByNameWithPlansArgsForCall, struct {
   507  		arg1 string
   508  	}{arg1})
   509  	fake.recordInvocation("GetServiceByNameWithPlans", []interface{}{arg1})
   510  	fake.getServiceByNameWithPlansMutex.Unlock()
   511  	if fake.GetServiceByNameWithPlansStub != nil {
   512  		return fake.GetServiceByNameWithPlansStub(arg1)
   513  	}
   514  	if specificReturn {
   515  		return ret.result1, ret.result2
   516  	}
   517  	fakeReturns := fake.getServiceByNameWithPlansReturns
   518  	return fakeReturns.result1, fakeReturns.result2
   519  }
   520  
   521  func (fake *FakeServiceBuilder) GetServiceByNameWithPlansCallCount() int {
   522  	fake.getServiceByNameWithPlansMutex.RLock()
   523  	defer fake.getServiceByNameWithPlansMutex.RUnlock()
   524  	return len(fake.getServiceByNameWithPlansArgsForCall)
   525  }
   526  
   527  func (fake *FakeServiceBuilder) GetServiceByNameWithPlansCalls(stub func(string) (models.ServiceOffering, error)) {
   528  	fake.getServiceByNameWithPlansMutex.Lock()
   529  	defer fake.getServiceByNameWithPlansMutex.Unlock()
   530  	fake.GetServiceByNameWithPlansStub = stub
   531  }
   532  
   533  func (fake *FakeServiceBuilder) GetServiceByNameWithPlansArgsForCall(i int) string {
   534  	fake.getServiceByNameWithPlansMutex.RLock()
   535  	defer fake.getServiceByNameWithPlansMutex.RUnlock()
   536  	argsForCall := fake.getServiceByNameWithPlansArgsForCall[i]
   537  	return argsForCall.arg1
   538  }
   539  
   540  func (fake *FakeServiceBuilder) GetServiceByNameWithPlansReturns(result1 models.ServiceOffering, result2 error) {
   541  	fake.getServiceByNameWithPlansMutex.Lock()
   542  	defer fake.getServiceByNameWithPlansMutex.Unlock()
   543  	fake.GetServiceByNameWithPlansStub = nil
   544  	fake.getServiceByNameWithPlansReturns = struct {
   545  		result1 models.ServiceOffering
   546  		result2 error
   547  	}{result1, result2}
   548  }
   549  
   550  func (fake *FakeServiceBuilder) GetServiceByNameWithPlansReturnsOnCall(i int, result1 models.ServiceOffering, result2 error) {
   551  	fake.getServiceByNameWithPlansMutex.Lock()
   552  	defer fake.getServiceByNameWithPlansMutex.Unlock()
   553  	fake.GetServiceByNameWithPlansStub = nil
   554  	if fake.getServiceByNameWithPlansReturnsOnCall == nil {
   555  		fake.getServiceByNameWithPlansReturnsOnCall = make(map[int]struct {
   556  			result1 models.ServiceOffering
   557  			result2 error
   558  		})
   559  	}
   560  	fake.getServiceByNameWithPlansReturnsOnCall[i] = struct {
   561  		result1 models.ServiceOffering
   562  		result2 error
   563  	}{result1, result2}
   564  }
   565  
   566  func (fake *FakeServiceBuilder) GetServiceByNameWithPlansWithOrgNames(arg1 string) (models.ServiceOffering, error) {
   567  	fake.getServiceByNameWithPlansWithOrgNamesMutex.Lock()
   568  	ret, specificReturn := fake.getServiceByNameWithPlansWithOrgNamesReturnsOnCall[len(fake.getServiceByNameWithPlansWithOrgNamesArgsForCall)]
   569  	fake.getServiceByNameWithPlansWithOrgNamesArgsForCall = append(fake.getServiceByNameWithPlansWithOrgNamesArgsForCall, struct {
   570  		arg1 string
   571  	}{arg1})
   572  	fake.recordInvocation("GetServiceByNameWithPlansWithOrgNames", []interface{}{arg1})
   573  	fake.getServiceByNameWithPlansWithOrgNamesMutex.Unlock()
   574  	if fake.GetServiceByNameWithPlansWithOrgNamesStub != nil {
   575  		return fake.GetServiceByNameWithPlansWithOrgNamesStub(arg1)
   576  	}
   577  	if specificReturn {
   578  		return ret.result1, ret.result2
   579  	}
   580  	fakeReturns := fake.getServiceByNameWithPlansWithOrgNamesReturns
   581  	return fakeReturns.result1, fakeReturns.result2
   582  }
   583  
   584  func (fake *FakeServiceBuilder) GetServiceByNameWithPlansWithOrgNamesCallCount() int {
   585  	fake.getServiceByNameWithPlansWithOrgNamesMutex.RLock()
   586  	defer fake.getServiceByNameWithPlansWithOrgNamesMutex.RUnlock()
   587  	return len(fake.getServiceByNameWithPlansWithOrgNamesArgsForCall)
   588  }
   589  
   590  func (fake *FakeServiceBuilder) GetServiceByNameWithPlansWithOrgNamesCalls(stub func(string) (models.ServiceOffering, error)) {
   591  	fake.getServiceByNameWithPlansWithOrgNamesMutex.Lock()
   592  	defer fake.getServiceByNameWithPlansWithOrgNamesMutex.Unlock()
   593  	fake.GetServiceByNameWithPlansWithOrgNamesStub = stub
   594  }
   595  
   596  func (fake *FakeServiceBuilder) GetServiceByNameWithPlansWithOrgNamesArgsForCall(i int) string {
   597  	fake.getServiceByNameWithPlansWithOrgNamesMutex.RLock()
   598  	defer fake.getServiceByNameWithPlansWithOrgNamesMutex.RUnlock()
   599  	argsForCall := fake.getServiceByNameWithPlansWithOrgNamesArgsForCall[i]
   600  	return argsForCall.arg1
   601  }
   602  
   603  func (fake *FakeServiceBuilder) GetServiceByNameWithPlansWithOrgNamesReturns(result1 models.ServiceOffering, result2 error) {
   604  	fake.getServiceByNameWithPlansWithOrgNamesMutex.Lock()
   605  	defer fake.getServiceByNameWithPlansWithOrgNamesMutex.Unlock()
   606  	fake.GetServiceByNameWithPlansWithOrgNamesStub = nil
   607  	fake.getServiceByNameWithPlansWithOrgNamesReturns = struct {
   608  		result1 models.ServiceOffering
   609  		result2 error
   610  	}{result1, result2}
   611  }
   612  
   613  func (fake *FakeServiceBuilder) GetServiceByNameWithPlansWithOrgNamesReturnsOnCall(i int, result1 models.ServiceOffering, result2 error) {
   614  	fake.getServiceByNameWithPlansWithOrgNamesMutex.Lock()
   615  	defer fake.getServiceByNameWithPlansWithOrgNamesMutex.Unlock()
   616  	fake.GetServiceByNameWithPlansWithOrgNamesStub = nil
   617  	if fake.getServiceByNameWithPlansWithOrgNamesReturnsOnCall == nil {
   618  		fake.getServiceByNameWithPlansWithOrgNamesReturnsOnCall = make(map[int]struct {
   619  			result1 models.ServiceOffering
   620  			result2 error
   621  		})
   622  	}
   623  	fake.getServiceByNameWithPlansWithOrgNamesReturnsOnCall[i] = struct {
   624  		result1 models.ServiceOffering
   625  		result2 error
   626  	}{result1, result2}
   627  }
   628  
   629  func (fake *FakeServiceBuilder) GetServiceVisibleToOrg(arg1 string, arg2 string) (models.ServiceOffering, error) {
   630  	fake.getServiceVisibleToOrgMutex.Lock()
   631  	ret, specificReturn := fake.getServiceVisibleToOrgReturnsOnCall[len(fake.getServiceVisibleToOrgArgsForCall)]
   632  	fake.getServiceVisibleToOrgArgsForCall = append(fake.getServiceVisibleToOrgArgsForCall, struct {
   633  		arg1 string
   634  		arg2 string
   635  	}{arg1, arg2})
   636  	fake.recordInvocation("GetServiceVisibleToOrg", []interface{}{arg1, arg2})
   637  	fake.getServiceVisibleToOrgMutex.Unlock()
   638  	if fake.GetServiceVisibleToOrgStub != nil {
   639  		return fake.GetServiceVisibleToOrgStub(arg1, arg2)
   640  	}
   641  	if specificReturn {
   642  		return ret.result1, ret.result2
   643  	}
   644  	fakeReturns := fake.getServiceVisibleToOrgReturns
   645  	return fakeReturns.result1, fakeReturns.result2
   646  }
   647  
   648  func (fake *FakeServiceBuilder) GetServiceVisibleToOrgCallCount() int {
   649  	fake.getServiceVisibleToOrgMutex.RLock()
   650  	defer fake.getServiceVisibleToOrgMutex.RUnlock()
   651  	return len(fake.getServiceVisibleToOrgArgsForCall)
   652  }
   653  
   654  func (fake *FakeServiceBuilder) GetServiceVisibleToOrgCalls(stub func(string, string) (models.ServiceOffering, error)) {
   655  	fake.getServiceVisibleToOrgMutex.Lock()
   656  	defer fake.getServiceVisibleToOrgMutex.Unlock()
   657  	fake.GetServiceVisibleToOrgStub = stub
   658  }
   659  
   660  func (fake *FakeServiceBuilder) GetServiceVisibleToOrgArgsForCall(i int) (string, string) {
   661  	fake.getServiceVisibleToOrgMutex.RLock()
   662  	defer fake.getServiceVisibleToOrgMutex.RUnlock()
   663  	argsForCall := fake.getServiceVisibleToOrgArgsForCall[i]
   664  	return argsForCall.arg1, argsForCall.arg2
   665  }
   666  
   667  func (fake *FakeServiceBuilder) GetServiceVisibleToOrgReturns(result1 models.ServiceOffering, result2 error) {
   668  	fake.getServiceVisibleToOrgMutex.Lock()
   669  	defer fake.getServiceVisibleToOrgMutex.Unlock()
   670  	fake.GetServiceVisibleToOrgStub = nil
   671  	fake.getServiceVisibleToOrgReturns = struct {
   672  		result1 models.ServiceOffering
   673  		result2 error
   674  	}{result1, result2}
   675  }
   676  
   677  func (fake *FakeServiceBuilder) GetServiceVisibleToOrgReturnsOnCall(i int, result1 models.ServiceOffering, result2 error) {
   678  	fake.getServiceVisibleToOrgMutex.Lock()
   679  	defer fake.getServiceVisibleToOrgMutex.Unlock()
   680  	fake.GetServiceVisibleToOrgStub = nil
   681  	if fake.getServiceVisibleToOrgReturnsOnCall == nil {
   682  		fake.getServiceVisibleToOrgReturnsOnCall = make(map[int]struct {
   683  			result1 models.ServiceOffering
   684  			result2 error
   685  		})
   686  	}
   687  	fake.getServiceVisibleToOrgReturnsOnCall[i] = struct {
   688  		result1 models.ServiceOffering
   689  		result2 error
   690  	}{result1, result2}
   691  }
   692  
   693  func (fake *FakeServiceBuilder) GetServicesByNameForSpaceWithPlans(arg1 string, arg2 string) (models.ServiceOfferings, error) {
   694  	fake.getServicesByNameForSpaceWithPlansMutex.Lock()
   695  	ret, specificReturn := fake.getServicesByNameForSpaceWithPlansReturnsOnCall[len(fake.getServicesByNameForSpaceWithPlansArgsForCall)]
   696  	fake.getServicesByNameForSpaceWithPlansArgsForCall = append(fake.getServicesByNameForSpaceWithPlansArgsForCall, struct {
   697  		arg1 string
   698  		arg2 string
   699  	}{arg1, arg2})
   700  	fake.recordInvocation("GetServicesByNameForSpaceWithPlans", []interface{}{arg1, arg2})
   701  	fake.getServicesByNameForSpaceWithPlansMutex.Unlock()
   702  	if fake.GetServicesByNameForSpaceWithPlansStub != nil {
   703  		return fake.GetServicesByNameForSpaceWithPlansStub(arg1, arg2)
   704  	}
   705  	if specificReturn {
   706  		return ret.result1, ret.result2
   707  	}
   708  	fakeReturns := fake.getServicesByNameForSpaceWithPlansReturns
   709  	return fakeReturns.result1, fakeReturns.result2
   710  }
   711  
   712  func (fake *FakeServiceBuilder) GetServicesByNameForSpaceWithPlansCallCount() int {
   713  	fake.getServicesByNameForSpaceWithPlansMutex.RLock()
   714  	defer fake.getServicesByNameForSpaceWithPlansMutex.RUnlock()
   715  	return len(fake.getServicesByNameForSpaceWithPlansArgsForCall)
   716  }
   717  
   718  func (fake *FakeServiceBuilder) GetServicesByNameForSpaceWithPlansCalls(stub func(string, string) (models.ServiceOfferings, error)) {
   719  	fake.getServicesByNameForSpaceWithPlansMutex.Lock()
   720  	defer fake.getServicesByNameForSpaceWithPlansMutex.Unlock()
   721  	fake.GetServicesByNameForSpaceWithPlansStub = stub
   722  }
   723  
   724  func (fake *FakeServiceBuilder) GetServicesByNameForSpaceWithPlansArgsForCall(i int) (string, string) {
   725  	fake.getServicesByNameForSpaceWithPlansMutex.RLock()
   726  	defer fake.getServicesByNameForSpaceWithPlansMutex.RUnlock()
   727  	argsForCall := fake.getServicesByNameForSpaceWithPlansArgsForCall[i]
   728  	return argsForCall.arg1, argsForCall.arg2
   729  }
   730  
   731  func (fake *FakeServiceBuilder) GetServicesByNameForSpaceWithPlansReturns(result1 models.ServiceOfferings, result2 error) {
   732  	fake.getServicesByNameForSpaceWithPlansMutex.Lock()
   733  	defer fake.getServicesByNameForSpaceWithPlansMutex.Unlock()
   734  	fake.GetServicesByNameForSpaceWithPlansStub = nil
   735  	fake.getServicesByNameForSpaceWithPlansReturns = struct {
   736  		result1 models.ServiceOfferings
   737  		result2 error
   738  	}{result1, result2}
   739  }
   740  
   741  func (fake *FakeServiceBuilder) GetServicesByNameForSpaceWithPlansReturnsOnCall(i int, result1 models.ServiceOfferings, result2 error) {
   742  	fake.getServicesByNameForSpaceWithPlansMutex.Lock()
   743  	defer fake.getServicesByNameForSpaceWithPlansMutex.Unlock()
   744  	fake.GetServicesByNameForSpaceWithPlansStub = nil
   745  	if fake.getServicesByNameForSpaceWithPlansReturnsOnCall == nil {
   746  		fake.getServicesByNameForSpaceWithPlansReturnsOnCall = make(map[int]struct {
   747  			result1 models.ServiceOfferings
   748  			result2 error
   749  		})
   750  	}
   751  	fake.getServicesByNameForSpaceWithPlansReturnsOnCall[i] = struct {
   752  		result1 models.ServiceOfferings
   753  		result2 error
   754  	}{result1, result2}
   755  }
   756  
   757  func (fake *FakeServiceBuilder) GetServicesForBroker(arg1 string) ([]models.ServiceOffering, error) {
   758  	fake.getServicesForBrokerMutex.Lock()
   759  	ret, specificReturn := fake.getServicesForBrokerReturnsOnCall[len(fake.getServicesForBrokerArgsForCall)]
   760  	fake.getServicesForBrokerArgsForCall = append(fake.getServicesForBrokerArgsForCall, struct {
   761  		arg1 string
   762  	}{arg1})
   763  	fake.recordInvocation("GetServicesForBroker", []interface{}{arg1})
   764  	fake.getServicesForBrokerMutex.Unlock()
   765  	if fake.GetServicesForBrokerStub != nil {
   766  		return fake.GetServicesForBrokerStub(arg1)
   767  	}
   768  	if specificReturn {
   769  		return ret.result1, ret.result2
   770  	}
   771  	fakeReturns := fake.getServicesForBrokerReturns
   772  	return fakeReturns.result1, fakeReturns.result2
   773  }
   774  
   775  func (fake *FakeServiceBuilder) GetServicesForBrokerCallCount() int {
   776  	fake.getServicesForBrokerMutex.RLock()
   777  	defer fake.getServicesForBrokerMutex.RUnlock()
   778  	return len(fake.getServicesForBrokerArgsForCall)
   779  }
   780  
   781  func (fake *FakeServiceBuilder) GetServicesForBrokerCalls(stub func(string) ([]models.ServiceOffering, error)) {
   782  	fake.getServicesForBrokerMutex.Lock()
   783  	defer fake.getServicesForBrokerMutex.Unlock()
   784  	fake.GetServicesForBrokerStub = stub
   785  }
   786  
   787  func (fake *FakeServiceBuilder) GetServicesForBrokerArgsForCall(i int) string {
   788  	fake.getServicesForBrokerMutex.RLock()
   789  	defer fake.getServicesForBrokerMutex.RUnlock()
   790  	argsForCall := fake.getServicesForBrokerArgsForCall[i]
   791  	return argsForCall.arg1
   792  }
   793  
   794  func (fake *FakeServiceBuilder) GetServicesForBrokerReturns(result1 []models.ServiceOffering, result2 error) {
   795  	fake.getServicesForBrokerMutex.Lock()
   796  	defer fake.getServicesForBrokerMutex.Unlock()
   797  	fake.GetServicesForBrokerStub = nil
   798  	fake.getServicesForBrokerReturns = struct {
   799  		result1 []models.ServiceOffering
   800  		result2 error
   801  	}{result1, result2}
   802  }
   803  
   804  func (fake *FakeServiceBuilder) GetServicesForBrokerReturnsOnCall(i int, result1 []models.ServiceOffering, result2 error) {
   805  	fake.getServicesForBrokerMutex.Lock()
   806  	defer fake.getServicesForBrokerMutex.Unlock()
   807  	fake.GetServicesForBrokerStub = nil
   808  	if fake.getServicesForBrokerReturnsOnCall == nil {
   809  		fake.getServicesForBrokerReturnsOnCall = make(map[int]struct {
   810  			result1 []models.ServiceOffering
   811  			result2 error
   812  		})
   813  	}
   814  	fake.getServicesForBrokerReturnsOnCall[i] = struct {
   815  		result1 []models.ServiceOffering
   816  		result2 error
   817  	}{result1, result2}
   818  }
   819  
   820  func (fake *FakeServiceBuilder) GetServicesForManyBrokers(arg1 []string) ([]models.ServiceOffering, error) {
   821  	var arg1Copy []string
   822  	if arg1 != nil {
   823  		arg1Copy = make([]string, len(arg1))
   824  		copy(arg1Copy, arg1)
   825  	}
   826  	fake.getServicesForManyBrokersMutex.Lock()
   827  	ret, specificReturn := fake.getServicesForManyBrokersReturnsOnCall[len(fake.getServicesForManyBrokersArgsForCall)]
   828  	fake.getServicesForManyBrokersArgsForCall = append(fake.getServicesForManyBrokersArgsForCall, struct {
   829  		arg1 []string
   830  	}{arg1Copy})
   831  	fake.recordInvocation("GetServicesForManyBrokers", []interface{}{arg1Copy})
   832  	fake.getServicesForManyBrokersMutex.Unlock()
   833  	if fake.GetServicesForManyBrokersStub != nil {
   834  		return fake.GetServicesForManyBrokersStub(arg1)
   835  	}
   836  	if specificReturn {
   837  		return ret.result1, ret.result2
   838  	}
   839  	fakeReturns := fake.getServicesForManyBrokersReturns
   840  	return fakeReturns.result1, fakeReturns.result2
   841  }
   842  
   843  func (fake *FakeServiceBuilder) GetServicesForManyBrokersCallCount() int {
   844  	fake.getServicesForManyBrokersMutex.RLock()
   845  	defer fake.getServicesForManyBrokersMutex.RUnlock()
   846  	return len(fake.getServicesForManyBrokersArgsForCall)
   847  }
   848  
   849  func (fake *FakeServiceBuilder) GetServicesForManyBrokersCalls(stub func([]string) ([]models.ServiceOffering, error)) {
   850  	fake.getServicesForManyBrokersMutex.Lock()
   851  	defer fake.getServicesForManyBrokersMutex.Unlock()
   852  	fake.GetServicesForManyBrokersStub = stub
   853  }
   854  
   855  func (fake *FakeServiceBuilder) GetServicesForManyBrokersArgsForCall(i int) []string {
   856  	fake.getServicesForManyBrokersMutex.RLock()
   857  	defer fake.getServicesForManyBrokersMutex.RUnlock()
   858  	argsForCall := fake.getServicesForManyBrokersArgsForCall[i]
   859  	return argsForCall.arg1
   860  }
   861  
   862  func (fake *FakeServiceBuilder) GetServicesForManyBrokersReturns(result1 []models.ServiceOffering, result2 error) {
   863  	fake.getServicesForManyBrokersMutex.Lock()
   864  	defer fake.getServicesForManyBrokersMutex.Unlock()
   865  	fake.GetServicesForManyBrokersStub = nil
   866  	fake.getServicesForManyBrokersReturns = struct {
   867  		result1 []models.ServiceOffering
   868  		result2 error
   869  	}{result1, result2}
   870  }
   871  
   872  func (fake *FakeServiceBuilder) GetServicesForManyBrokersReturnsOnCall(i int, result1 []models.ServiceOffering, result2 error) {
   873  	fake.getServicesForManyBrokersMutex.Lock()
   874  	defer fake.getServicesForManyBrokersMutex.Unlock()
   875  	fake.GetServicesForManyBrokersStub = nil
   876  	if fake.getServicesForManyBrokersReturnsOnCall == nil {
   877  		fake.getServicesForManyBrokersReturnsOnCall = make(map[int]struct {
   878  			result1 []models.ServiceOffering
   879  			result2 error
   880  		})
   881  	}
   882  	fake.getServicesForManyBrokersReturnsOnCall[i] = struct {
   883  		result1 []models.ServiceOffering
   884  		result2 error
   885  	}{result1, result2}
   886  }
   887  
   888  func (fake *FakeServiceBuilder) GetServicesForSpace(arg1 string) ([]models.ServiceOffering, error) {
   889  	fake.getServicesForSpaceMutex.Lock()
   890  	ret, specificReturn := fake.getServicesForSpaceReturnsOnCall[len(fake.getServicesForSpaceArgsForCall)]
   891  	fake.getServicesForSpaceArgsForCall = append(fake.getServicesForSpaceArgsForCall, struct {
   892  		arg1 string
   893  	}{arg1})
   894  	fake.recordInvocation("GetServicesForSpace", []interface{}{arg1})
   895  	fake.getServicesForSpaceMutex.Unlock()
   896  	if fake.GetServicesForSpaceStub != nil {
   897  		return fake.GetServicesForSpaceStub(arg1)
   898  	}
   899  	if specificReturn {
   900  		return ret.result1, ret.result2
   901  	}
   902  	fakeReturns := fake.getServicesForSpaceReturns
   903  	return fakeReturns.result1, fakeReturns.result2
   904  }
   905  
   906  func (fake *FakeServiceBuilder) GetServicesForSpaceCallCount() int {
   907  	fake.getServicesForSpaceMutex.RLock()
   908  	defer fake.getServicesForSpaceMutex.RUnlock()
   909  	return len(fake.getServicesForSpaceArgsForCall)
   910  }
   911  
   912  func (fake *FakeServiceBuilder) GetServicesForSpaceCalls(stub func(string) ([]models.ServiceOffering, error)) {
   913  	fake.getServicesForSpaceMutex.Lock()
   914  	defer fake.getServicesForSpaceMutex.Unlock()
   915  	fake.GetServicesForSpaceStub = stub
   916  }
   917  
   918  func (fake *FakeServiceBuilder) GetServicesForSpaceArgsForCall(i int) string {
   919  	fake.getServicesForSpaceMutex.RLock()
   920  	defer fake.getServicesForSpaceMutex.RUnlock()
   921  	argsForCall := fake.getServicesForSpaceArgsForCall[i]
   922  	return argsForCall.arg1
   923  }
   924  
   925  func (fake *FakeServiceBuilder) GetServicesForSpaceReturns(result1 []models.ServiceOffering, result2 error) {
   926  	fake.getServicesForSpaceMutex.Lock()
   927  	defer fake.getServicesForSpaceMutex.Unlock()
   928  	fake.GetServicesForSpaceStub = nil
   929  	fake.getServicesForSpaceReturns = struct {
   930  		result1 []models.ServiceOffering
   931  		result2 error
   932  	}{result1, result2}
   933  }
   934  
   935  func (fake *FakeServiceBuilder) GetServicesForSpaceReturnsOnCall(i int, result1 []models.ServiceOffering, result2 error) {
   936  	fake.getServicesForSpaceMutex.Lock()
   937  	defer fake.getServicesForSpaceMutex.Unlock()
   938  	fake.GetServicesForSpaceStub = nil
   939  	if fake.getServicesForSpaceReturnsOnCall == nil {
   940  		fake.getServicesForSpaceReturnsOnCall = make(map[int]struct {
   941  			result1 []models.ServiceOffering
   942  			result2 error
   943  		})
   944  	}
   945  	fake.getServicesForSpaceReturnsOnCall[i] = struct {
   946  		result1 []models.ServiceOffering
   947  		result2 error
   948  	}{result1, result2}
   949  }
   950  
   951  func (fake *FakeServiceBuilder) GetServicesForSpaceWithPlans(arg1 string) ([]models.ServiceOffering, error) {
   952  	fake.getServicesForSpaceWithPlansMutex.Lock()
   953  	ret, specificReturn := fake.getServicesForSpaceWithPlansReturnsOnCall[len(fake.getServicesForSpaceWithPlansArgsForCall)]
   954  	fake.getServicesForSpaceWithPlansArgsForCall = append(fake.getServicesForSpaceWithPlansArgsForCall, struct {
   955  		arg1 string
   956  	}{arg1})
   957  	fake.recordInvocation("GetServicesForSpaceWithPlans", []interface{}{arg1})
   958  	fake.getServicesForSpaceWithPlansMutex.Unlock()
   959  	if fake.GetServicesForSpaceWithPlansStub != nil {
   960  		return fake.GetServicesForSpaceWithPlansStub(arg1)
   961  	}
   962  	if specificReturn {
   963  		return ret.result1, ret.result2
   964  	}
   965  	fakeReturns := fake.getServicesForSpaceWithPlansReturns
   966  	return fakeReturns.result1, fakeReturns.result2
   967  }
   968  
   969  func (fake *FakeServiceBuilder) GetServicesForSpaceWithPlansCallCount() int {
   970  	fake.getServicesForSpaceWithPlansMutex.RLock()
   971  	defer fake.getServicesForSpaceWithPlansMutex.RUnlock()
   972  	return len(fake.getServicesForSpaceWithPlansArgsForCall)
   973  }
   974  
   975  func (fake *FakeServiceBuilder) GetServicesForSpaceWithPlansCalls(stub func(string) ([]models.ServiceOffering, error)) {
   976  	fake.getServicesForSpaceWithPlansMutex.Lock()
   977  	defer fake.getServicesForSpaceWithPlansMutex.Unlock()
   978  	fake.GetServicesForSpaceWithPlansStub = stub
   979  }
   980  
   981  func (fake *FakeServiceBuilder) GetServicesForSpaceWithPlansArgsForCall(i int) string {
   982  	fake.getServicesForSpaceWithPlansMutex.RLock()
   983  	defer fake.getServicesForSpaceWithPlansMutex.RUnlock()
   984  	argsForCall := fake.getServicesForSpaceWithPlansArgsForCall[i]
   985  	return argsForCall.arg1
   986  }
   987  
   988  func (fake *FakeServiceBuilder) GetServicesForSpaceWithPlansReturns(result1 []models.ServiceOffering, result2 error) {
   989  	fake.getServicesForSpaceWithPlansMutex.Lock()
   990  	defer fake.getServicesForSpaceWithPlansMutex.Unlock()
   991  	fake.GetServicesForSpaceWithPlansStub = nil
   992  	fake.getServicesForSpaceWithPlansReturns = struct {
   993  		result1 []models.ServiceOffering
   994  		result2 error
   995  	}{result1, result2}
   996  }
   997  
   998  func (fake *FakeServiceBuilder) GetServicesForSpaceWithPlansReturnsOnCall(i int, result1 []models.ServiceOffering, result2 error) {
   999  	fake.getServicesForSpaceWithPlansMutex.Lock()
  1000  	defer fake.getServicesForSpaceWithPlansMutex.Unlock()
  1001  	fake.GetServicesForSpaceWithPlansStub = nil
  1002  	if fake.getServicesForSpaceWithPlansReturnsOnCall == nil {
  1003  		fake.getServicesForSpaceWithPlansReturnsOnCall = make(map[int]struct {
  1004  			result1 []models.ServiceOffering
  1005  			result2 error
  1006  		})
  1007  	}
  1008  	fake.getServicesForSpaceWithPlansReturnsOnCall[i] = struct {
  1009  		result1 []models.ServiceOffering
  1010  		result2 error
  1011  	}{result1, result2}
  1012  }
  1013  
  1014  func (fake *FakeServiceBuilder) GetServicesVisibleToOrg(arg1 string) ([]models.ServiceOffering, error) {
  1015  	fake.getServicesVisibleToOrgMutex.Lock()
  1016  	ret, specificReturn := fake.getServicesVisibleToOrgReturnsOnCall[len(fake.getServicesVisibleToOrgArgsForCall)]
  1017  	fake.getServicesVisibleToOrgArgsForCall = append(fake.getServicesVisibleToOrgArgsForCall, struct {
  1018  		arg1 string
  1019  	}{arg1})
  1020  	fake.recordInvocation("GetServicesVisibleToOrg", []interface{}{arg1})
  1021  	fake.getServicesVisibleToOrgMutex.Unlock()
  1022  	if fake.GetServicesVisibleToOrgStub != nil {
  1023  		return fake.GetServicesVisibleToOrgStub(arg1)
  1024  	}
  1025  	if specificReturn {
  1026  		return ret.result1, ret.result2
  1027  	}
  1028  	fakeReturns := fake.getServicesVisibleToOrgReturns
  1029  	return fakeReturns.result1, fakeReturns.result2
  1030  }
  1031  
  1032  func (fake *FakeServiceBuilder) GetServicesVisibleToOrgCallCount() int {
  1033  	fake.getServicesVisibleToOrgMutex.RLock()
  1034  	defer fake.getServicesVisibleToOrgMutex.RUnlock()
  1035  	return len(fake.getServicesVisibleToOrgArgsForCall)
  1036  }
  1037  
  1038  func (fake *FakeServiceBuilder) GetServicesVisibleToOrgCalls(stub func(string) ([]models.ServiceOffering, error)) {
  1039  	fake.getServicesVisibleToOrgMutex.Lock()
  1040  	defer fake.getServicesVisibleToOrgMutex.Unlock()
  1041  	fake.GetServicesVisibleToOrgStub = stub
  1042  }
  1043  
  1044  func (fake *FakeServiceBuilder) GetServicesVisibleToOrgArgsForCall(i int) string {
  1045  	fake.getServicesVisibleToOrgMutex.RLock()
  1046  	defer fake.getServicesVisibleToOrgMutex.RUnlock()
  1047  	argsForCall := fake.getServicesVisibleToOrgArgsForCall[i]
  1048  	return argsForCall.arg1
  1049  }
  1050  
  1051  func (fake *FakeServiceBuilder) GetServicesVisibleToOrgReturns(result1 []models.ServiceOffering, result2 error) {
  1052  	fake.getServicesVisibleToOrgMutex.Lock()
  1053  	defer fake.getServicesVisibleToOrgMutex.Unlock()
  1054  	fake.GetServicesVisibleToOrgStub = nil
  1055  	fake.getServicesVisibleToOrgReturns = struct {
  1056  		result1 []models.ServiceOffering
  1057  		result2 error
  1058  	}{result1, result2}
  1059  }
  1060  
  1061  func (fake *FakeServiceBuilder) GetServicesVisibleToOrgReturnsOnCall(i int, result1 []models.ServiceOffering, result2 error) {
  1062  	fake.getServicesVisibleToOrgMutex.Lock()
  1063  	defer fake.getServicesVisibleToOrgMutex.Unlock()
  1064  	fake.GetServicesVisibleToOrgStub = nil
  1065  	if fake.getServicesVisibleToOrgReturnsOnCall == nil {
  1066  		fake.getServicesVisibleToOrgReturnsOnCall = make(map[int]struct {
  1067  			result1 []models.ServiceOffering
  1068  			result2 error
  1069  		})
  1070  	}
  1071  	fake.getServicesVisibleToOrgReturnsOnCall[i] = struct {
  1072  		result1 []models.ServiceOffering
  1073  		result2 error
  1074  	}{result1, result2}
  1075  }
  1076  
  1077  func (fake *FakeServiceBuilder) Invocations() map[string][][]interface{} {
  1078  	fake.invocationsMutex.RLock()
  1079  	defer fake.invocationsMutex.RUnlock()
  1080  	fake.getAllServicesMutex.RLock()
  1081  	defer fake.getAllServicesMutex.RUnlock()
  1082  	fake.getAllServicesWithPlansMutex.RLock()
  1083  	defer fake.getAllServicesWithPlansMutex.RUnlock()
  1084  	fake.getServiceByNameForOrgMutex.RLock()
  1085  	defer fake.getServiceByNameForOrgMutex.RUnlock()
  1086  	fake.getServiceByNameForSpaceMutex.RLock()
  1087  	defer fake.getServiceByNameForSpaceMutex.RUnlock()
  1088  	fake.getServiceByNameForSpaceWithPlansMutex.RLock()
  1089  	defer fake.getServiceByNameForSpaceWithPlansMutex.RUnlock()
  1090  	fake.getServiceByNameWithPlansMutex.RLock()
  1091  	defer fake.getServiceByNameWithPlansMutex.RUnlock()
  1092  	fake.getServiceByNameWithPlansWithOrgNamesMutex.RLock()
  1093  	defer fake.getServiceByNameWithPlansWithOrgNamesMutex.RUnlock()
  1094  	fake.getServiceVisibleToOrgMutex.RLock()
  1095  	defer fake.getServiceVisibleToOrgMutex.RUnlock()
  1096  	fake.getServicesByNameForSpaceWithPlansMutex.RLock()
  1097  	defer fake.getServicesByNameForSpaceWithPlansMutex.RUnlock()
  1098  	fake.getServicesForBrokerMutex.RLock()
  1099  	defer fake.getServicesForBrokerMutex.RUnlock()
  1100  	fake.getServicesForManyBrokersMutex.RLock()
  1101  	defer fake.getServicesForManyBrokersMutex.RUnlock()
  1102  	fake.getServicesForSpaceMutex.RLock()
  1103  	defer fake.getServicesForSpaceMutex.RUnlock()
  1104  	fake.getServicesForSpaceWithPlansMutex.RLock()
  1105  	defer fake.getServicesForSpaceWithPlansMutex.RUnlock()
  1106  	fake.getServicesVisibleToOrgMutex.RLock()
  1107  	defer fake.getServicesVisibleToOrgMutex.RUnlock()
  1108  	copiedInvocations := map[string][][]interface{}{}
  1109  	for key, value := range fake.invocations {
  1110  		copiedInvocations[key] = value
  1111  	}
  1112  	return copiedInvocations
  1113  }
  1114  
  1115  func (fake *FakeServiceBuilder) recordInvocation(key string, args []interface{}) {
  1116  	fake.invocationsMutex.Lock()
  1117  	defer fake.invocationsMutex.Unlock()
  1118  	if fake.invocations == nil {
  1119  		fake.invocations = map[string][][]interface{}{}
  1120  	}
  1121  	if fake.invocations[key] == nil {
  1122  		fake.invocations[key] = [][]interface{}{}
  1123  	}
  1124  	fake.invocations[key] = append(fake.invocations[key], args)
  1125  }
  1126  
  1127  var _ servicebuilder.ServiceBuilder = new(FakeServiceBuilder)