Пример #1
0
        public TeamMergeViewModel(ITeamService teamService, IMergeOperation mergeOperation, IConfigManager configManager, ILogger logger, ISolutionService solutionService)
        {
            _logger = logger;

            TeamMergeCommandsViewModel = new TeamMergeCommonCommandsViewModel(teamService, mergeOperation, configManager, logger, solutionService, SetBusyWhileExecutingAsync);

            ViewChangesetDetailsCommand = new RelayCommand(ViewChangeset, CanViewChangeset);

            Title = Resources.TeamMerge;
        }
Пример #2
0
        public void Initialize()
        {
            _teamService     = MockRepository.GenerateStrictMock <ITeamService>();
            _mergeOperation  = MockRepository.GenerateStrictMock <IMergeOperation>();
            _configManager   = MockRepository.GenerateStrictMock <IConfigManager>();
            _serviceProvider = MockRepository.GenerateStrictMock <IServiceProvider>();
            _logger          = MockRepository.GenerateStrictMock <ILogger>();
            _solutionService = MockRepository.GenerateStrictMock <ISolutionService>();

            _sut = new TeamMergeCommonCommandsViewModel(_teamService, _mergeOperation, _configManager, _logger, _solutionService, SetThingsBusyAndStuffAsync);
        }