Add local ContextFactory caching to all remaining test scenes that create local managers

This commit is contained in:
Dean Herbert
2022-01-14 19:59:21 +09:00
parent 3a95425a9e
commit a59dcccab7
15 changed files with 18 additions and 0 deletions

View File

@ -90,6 +90,7 @@ namespace osu.Game.Tests.Visual.UserInterface
dependencies.Cache(rulesetStore = new RulesetStore(ContextFactory));
dependencies.Cache(beatmapManager = new BeatmapManager(LocalStorage, ContextFactory, rulesetStore, null, dependencies.Get<AudioManager>(), Resources, dependencies.Get<GameHost>(), Beatmap.Default));
dependencies.Cache(scoreManager = new ScoreManager(dependencies.Get<RulesetStore>(), () => beatmapManager, LocalStorage, dependencies.Get<RealmContextFactory>(), Scheduler));
Dependencies.Cache(ContextFactory);
var imported = beatmapManager.Import(new ImportTask(TestResources.GetQuickTestBeatmapForImport())).GetResultSafely();