(requests ...testnet.TestRequest)
| 347 | }) |
| 348 | |
| 349 | func createServiceBrokerRepo(requests ...testnet.TestRequest) (ts *httptest.Server, handler *testnet.TestHandler, repo ServiceBrokerRepository) { |
| 350 | ts, handler = testnet.NewServer(requests) |
| 351 | configRepo := testconfig.NewRepositoryWithDefaults() |
| 352 | configRepo.SetAPIEndpoint(ts.URL) |
| 353 | gateway := net.NewCloudControllerGateway(configRepo, time.Now, new(terminalfakes.FakeUI), new(tracefakes.FakePrinter), "") |
| 354 | repo = NewCloudControllerServiceBrokerRepository(configRepo, gateway) |
| 355 | return |
| 356 | } |
no test coverage detected