public MultiplayerTestSceneDependencies() { Client = new TestMultiplayerClient(RoomManager); LookupCache = new TestUserLookupCache(); SpectatorClient = CreateSpectatorClient(); CacheAs <MultiplayerClient>(Client); CacheAs <UserLookupCache>(LookupCache); CacheAs <SpectatorClient>(SpectatorClient); }
public void SetUpSteps() { AddStep("add streaming client", () => { spectatorClient = new TestSpectatorClient(); var lookupCache = new TestUserLookupCache(); Children = new Drawable[] { lookupCache, spectatorClient, new DependencyProvidingContainer { RelativeSizeAxes = Axes.Both, CachedDependencies = new (Type, object)[]
public OnlinePlayTestSceneDependencies() { SelectedRoom = new Bindable <Room>(); RequestsHandler = new TestRoomRequestsHandler(); OngoingOperationTracker = new OngoingOperationTracker(); AvailabilityTracker = new OnlinePlayBeatmapAvailabilityTracker(); RoomManager = CreateRoomManager(); UserLookupCache = new TestUserLookupCache(); BeatmapLookupCache = new BeatmapLookupCache(); dependencies = new DependencyContainer(new CachedModelDependencyContainer <Room>(null) { Model = { BindTarget = SelectedRoom } }); CacheAs(RequestsHandler); CacheAs(SelectedRoom); CacheAs(RoomManager); CacheAs(OngoingOperationTracker); CacheAs(AvailabilityTracker); CacheAs(new OverlayColourProvider(OverlayColourScheme.Plum)); CacheAs <UserLookupCache>(UserLookupCache); CacheAs(BeatmapLookupCache); }