示例#1
0
 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();
        }
示例#4
0
 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));
 }
示例#5
0
 public YouTrackService(IEventAggregatorService eventAggregator, IGitWatcher gitWatcher)
 {
     _eventAggregator = eventAggregator;
     _gitWatcher      = gitWatcher;
 }
示例#6
0
 public bool RemoveWatcher(IGitWatcher watcher)
 {
     return(watchers.Remove(watcher));
 }
示例#7
0
 public BitbucketService(IEventAggregatorService eventAggregator, IGitWatcher gitWatcher)
 {
     _eventAggregator = eventAggregator;
     _gitWatcher      = gitWatcher;
 }