Construct notifications client inside ChannelManager

This commit is contained in:
Dan Balasescu
2022-11-04 18:51:00 +09:00
parent 72745656e7
commit fa18b5f701
8 changed files with 10 additions and 13 deletions

View File

@ -41,7 +41,7 @@ namespace osu.Game.Tests.Visual.Online
{
linkColour = colours.Blue;
var chatManager = new ChannelManager(API, API.GetNotificationsConnector());
var chatManager = new ChannelManager(API);
BindableList<Channel> availableChannels = (BindableList<Channel>)chatManager.AvailableChannels;
availableChannels.Add(new Channel { Name = "#english" });
availableChannels.Add(new Channel { Name = "#japanese" });

View File

@ -59,7 +59,7 @@ namespace osu.Game.Tests.Visual.Online
RelativeSizeAxes = Axes.Both,
CachedDependencies = new (Type, object)[]
{
(typeof(ChannelManager), channelManager = new ChannelManager(API, API.GetNotificationsConnector())),
(typeof(ChannelManager), channelManager = new ChannelManager(API)),
},
Children = new Drawable[]
{

View File

@ -250,7 +250,7 @@ namespace osu.Game.Tests.Visual.Online
public TestContainer(IAPIProvider api, Channel[] channels)
{
this.channels = channels;
ChannelManager = new ChannelManager(api, api.GetNotificationsConnector());
ChannelManager = new ChannelManager(api);
}
[BackgroundDependencyLoader]

View File

@ -58,7 +58,7 @@ namespace osu.Game.Tests.Visual.Online
{
var api = parent.Get<IAPIProvider>();
Add(channelManager = new ChannelManager(api, api.GetNotificationsConnector()));
Add(channelManager = new ChannelManager(api));
var dependencies = new DependencyContainer(base.CreateChildDependencies(parent));