(req testnet.TestRequest)
| 97 | }) |
| 98 | |
| 99 | func createServiceSummaryRepo(req testnet.TestRequest) (ts *httptest.Server, handler *testnet.TestHandler, repo ServiceSummaryRepository) { |
| 100 | ts, handler = testnet.NewServer([]testnet.TestRequest{req}) |
| 101 | configRepo := testconfig.NewRepositoryWithDefaults() |
| 102 | configRepo.SetAPIEndpoint(ts.URL) |
| 103 | gateway := net.NewCloudControllerGateway(configRepo, time.Now, new(terminalfakes.FakeUI), new(tracefakes.FakePrinter), "") |
| 104 | repo = NewCloudControllerServiceSummaryRepository(configRepo, gateway) |
| 105 | return |
| 106 | } |
no test coverage detected