. "github.com/cloudfoundry/cli/testhelpers/matchers" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("BindRouteService", func() { var ( ui *testterm.FakeUI configRepo core_config.Repository routeRepo *testapi.FakeRouteRepository routeServiceBindingRepo *testapi.FakeRouteServiceBindingRepository cmd command_registry.Command deps command_registry.Dependency factory *fakerequirements.FakeFactory flagContext flags.FlagContext fakeDomain models.DomainFields loginRequirement requirements.Requirement domainRequirement *fakerequirements.FakeDomainRequirement serviceInstanceRequirement *fakerequirements.FakeServiceInstanceRequirement ) BeforeEach(func() { ui = &testterm.FakeUI{} configRepo = testconfig.NewRepositoryWithDefaults() routeRepo = &testapi.FakeRouteRepository{} repoLocator := deps.RepoLocator.SetRouteRepository(routeRepo)
testconfig "github.com/cloudfoundry/cli/testhelpers/configuration" testterm "github.com/cloudfoundry/cli/testhelpers/terminal" . "github.com/cloudfoundry/cli/testhelpers/matchers" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("UpdateUserProvidedService", func() { var ( ui *testterm.FakeUI configRepo core_config.Repository serviceInstanceRepo *testapi.FakeUserProvidedServiceInstanceRepository cmd command_registry.Command deps command_registry.Dependency factory *fakerequirements.FakeFactory flagContext flags.FlagContext loginRequirement requirements.Requirement minAPIVersionRequirement requirements.Requirement serviceInstanceRequirement *fakerequirements.FakeServiceInstanceRequirement ) BeforeEach(func() { ui = &testterm.FakeUI{} configRepo = testconfig.NewRepositoryWithDefaults() serviceInstanceRepo = &testapi.FakeUserProvidedServiceInstanceRepository{} repoLocator := deps.RepoLocator.SetUserProvidedServiceInstanceRepository(serviceInstanceRepo) deps = command_registry.Dependency{ Ui: ui,