Add interface for database context factory

This commit is contained in:
Dean Herbert
2018-02-12 23:10:05 +09:00
parent 64cda9fd0f
commit a738664167
10 changed files with 34 additions and 15 deletions

View File

@ -63,7 +63,7 @@ namespace osu.Game.Tests.Visual
var storage = new TestStorage(@"TestCasePlaySongSelect");
// this is by no means clean. should be replacing inside of OsuGameBase somehow.
DatabaseContextFactory factory = new SingletonContextFactory(new OsuDbContext());
IDatabaseContextFactory factory = new SingletonContextFactory(new OsuDbContext());
dependencies.Cache(rulesets = new RulesetStore(factory));
dependencies.Cache(manager = new BeatmapManager(storage, factory, rulesets, null)