cmd command_registry.Command deps command_registry.Dependency factory *fakerequirements.FakeFactory flagContext flags.FlagContext loginRequirement requirements.Requirement targetedSpaceRequirement requirements.Requirement applicationRequirement *fakerequirements.FakeApplicationRequirement ) BeforeEach(func() { cmd = &application.ShowApp{} flagContext = flags.NewFlagContext(cmd.MetaData().Flags) ui = &testterm.FakeUI{} ui.InputsChan = make(chan string) getAppModel = &plugin_models.GetAppModel{} repoLocator := api.RepositoryLocator{} appSummaryRepo = &fakeapi.FakeAppSummaryRepository{} repoLocator = repoLocator.SetAppSummaryRepository(appSummaryRepo) appInstancesRepo = &fakeappinstances.FakeAppInstancesRepository{} repoLocator = repoLocator.SetAppInstancesRepository(appInstancesRepo) deps = command_registry.Dependency{ Ui: ui, Config: testconfig.NewRepositoryWithDefaults(), PluginModels: &command_registry.PluginModels{ Application: getAppModel, },