(requests []testnet.TestRequest)
| 660 | }) |
| 661 | |
| 662 | func createAppRepo(requests []testnet.TestRequest) (ts *httptest.Server, handler *testnet.TestHandler, repo Repository) { |
| 663 | ts, handler = testnet.NewServer(requests) |
| 664 | configRepo := testconfig.NewRepositoryWithDefaults() |
| 665 | configRepo.SetAPIEndpoint(ts.URL) |
| 666 | gateway := net.NewCloudControllerGateway(configRepo, time.Now, new(terminalfakes.FakeUI), new(tracefakes.FakePrinter), "") |
| 667 | repo = NewCloudControllerRepository(configRepo, gateway) |
| 668 | return |
| 669 | } |
no test coverage detected