public void AddWatcher(IGitWatcher watcher) { if (watchers.Contains(watcher)) { return; } watchers.Add(watcher); }
public BitbucketService( IEventAggregatorService eventAggregator, IGitWatcher gitWatcher, IBitbucketClientFactory bitbucketClientFactory) { _eventAggregator = eventAggregator; _gitWatcher = gitWatcher; _bitbucketClientFactory = bitbucketClientFactory; }
public void SetUp() { _gitClientService = MockRepository.GenerateMock <IGitClientService>(); _gitService = MockRepository.GenerateMock <IGitService>(); _fileService = MockRepository.GenerateMock <IFileService>(); _userInfoService = MockRepository.GenerateMock <IUserInformationService>(); _gitWatcher = MockRepository.GenerateMock <IGitWatcher>(); _sut = CreateSut(); }
public PublishSection( IPublishSectionView view, IAppServiceProvider appServiceProvider, IGitClientService gitClientService, IGitWatcher gitWatcher, IUserInformationService userInformationService, IEventAggregatorService eventAggregator ) : base(view) { _appServiceProvider = appServiceProvider; _userInformationService = userInformationService; _eventAggregator = eventAggregator; Title = $"{Resources.PublishSectionTitle} to {gitClientService.Origin}"; IsVisible = IsGitLocalRepoAndLoggedIn(gitWatcher.ActiveRepo); _obs = _eventAggregator.GetEvent <ActiveRepositoryChangedEvent>().Subscribe(x => IsVisible = IsGitLocalRepoAndLoggedIn(x.ActiveRepository)); }
public YouTrackService(IEventAggregatorService eventAggregator, IGitWatcher gitWatcher) { _eventAggregator = eventAggregator; _gitWatcher = gitWatcher; }
public bool RemoveWatcher(IGitWatcher watcher) { return(watchers.Remove(watcher)); }
public BitbucketService(IEventAggregatorService eventAggregator, IGitWatcher gitWatcher) { _eventAggregator = eventAggregator; _gitWatcher = gitWatcher; }