internal Favorites(FilePersistence persistence) { this.persistence = persistence; this.dispatcher = persistence.Dispatcher; this.groups = this.persistence.GroupsStore; this.cache = new Dictionary<Guid,IFavorite>(); }
/// <summary> /// For testing purpose allowes to inject internaly used services /// </summary> internal FilePersistence(PersistenceSecurity security, IDataFileWatcher fileWatcher) { this.InitializeSecurity(security); this.Dispatcher = new DataDispatcher(); this.storedCredentials = new StoredCredentials(security); this.groups = new Groups(this); this.favorites = new Favorites(this); this.connectionHistory = new ConnectionHistory(this.favorites); this.factory = new Factory(security, this.groups, this.Dispatcher); this.InitializeFileWatch(fileWatcher); }
internal Factory(PersistenceSecurity persistenceSecurity, Groups groups, DataDispatcher dispatcher) { this.groups = groups; this.dispatcher = dispatcher; this.persistenceSecurity = persistenceSecurity; }