public void ManagerSetup() { this.provider = new MockConnectionProvider (GablarskiProtocol.Instance); this.provider.Start (MessageTypes.All); var connections = this.provider.GetConnections (GablarskiProtocol.Instance); this.server = new ConnectionBuffer (connections.Item2); this.client = connections.Item1; context = new MockClientContext (this.client); var channels = new ClientChannelManager (context); ClientChannelManagerTests.PopulateChannels (channels, server); context.Users = new ClientUserHandler (context, new ClientUserManager()); context.Channels = channels; context.CurrentUser = new CurrentUser (context, 1, "Foo", channels.First().ChannelId); this.manager = new ClientSourceManager (context); }