Example #1
0
 public void WithDefaultValues()
 {
     this._collectionSettings    = new CollectionSettings();
     this._bookSelection         = new BookSelection();
     this._teamCollectionManager = null;                 // ENHANCE: This would be better off calling the builder for TeamCollectionManager, when it's implemented.
     this._bookServer            = null;
     this._bloomWebSocketServer  = null;
 }
Example #2
0
 // Called by autofac, which creates the one instance and registers it with the server.
 public TeamCollectionApi(CurrentEditableCollectionSelection currentBookCollectionSelection, CollectionSettings settings, BookSelection bookSelection, ITeamCollectionManager tcManager, BookServer bookServer, BloomWebSocketServer socketServer)
 {
     _currentBookCollectionSelection = currentBookCollectionSelection;
     _settings  = settings;
     _tcManager = tcManager;
     _tcManager.CurrentCollection?.SetupMonitoringBehavior();
     _bookSelection = bookSelection;
     _socketServer  = socketServer;
     _bookServer    = bookServer;
     TheOneInstance = this;
 }
 public DisconnectedTeamCollection(ITeamCollectionManager manager, string localCollectionFolder,
                                   string description, TeamCollectionMessageLog tcLog = null) : base(manager, localCollectionFolder, tcLog)
 {
     RepoDescription = description;
 }
Example #4
0
 public TeamCollectionApiBuilder WithTeamCollectionManager(ITeamCollectionManager teamCollectionManager)
 {
     _teamCollectionManager = teamCollectionManager;
     return(this);
 }
Example #5
0
 public TestFolderTeamCollection(ITeamCollectionManager tcManager, string localCollectionFolder,
                                 string repoFolderPath, TeamCollectionMessageLog tcLog = null) : base(tcManager, localCollectionFolder, repoFolderPath, tcLog)
 {
 }