public UiManagerHub(ILoginStatusChecker statusChecker, Clients matrixManager, HubConnections repository)
 {
     this.Sessions      = new List <Session>();
     this.Validator     = new WebpageValidation();
     this.Messages      = new List <DelayedMessage>();
     this.StatusChecker = statusChecker;
     this.MatrixManager = matrixManager;
     this.Repository    = repository;
 }
 bool UserRepositoryPredicate_IsTherePredefinedUser(HubConnections repository, Predicate <HubUser> optionalPredicate = null)
 => _fixture.Repository.HubUserList.Any(x => x.UserName.Equals(UserName) && x.Ids.Contains(Id) &&
                                        (optionalPredicate?.Invoke(x) ?? true));
 public void Dispose()
 {
     Repository = null;
 }
 public UserManagingFixture()
 {
     Repository = new HubConnections();
     Repository.AddConnection(Id, UserName);
 }
 public AdministrationHub(Clients clients, HubConnections connection)
 {
     this.ConnectedClients = clients;
     this.HubConnection    = connection;
 }