public RepositoryListViewModel(
            ImportRepositoryCommand importRepositoryCommand,
            Func<RepositoryListDto, RepositoryViewModel> repositoryFactory,
            ICommandSender commandSender,
            IGithubReadModel readModel)
        {
            _importRepositoryCommand = importRepositoryCommand;
            _repositoryFactory = repositoryFactory;
            _commandSender = commandSender;
            _readModel = readModel;
            _repositories = new ObservableCollection<RepositoryViewModel>();

            _importRepositoryCommand.RepositoryImported += RepositoryImportedEventHandler;

            Initialize();
        }
Пример #2
0
        public RepositoryListViewModel(
            ImportRepositoryCommand importRepositoryCommand,
            Func <RepositoryListDto, RepositoryViewModel> repositoryFactory,
            ICommandSender commandSender,
            IGithubReadModel readModel)
        {
            _importRepositoryCommand = importRepositoryCommand;
            _repositoryFactory       = repositoryFactory;
            _commandSender           = commandSender;
            _readModel    = readModel;
            _repositories = new ObservableCollection <RepositoryViewModel>();

            _importRepositoryCommand.RepositoryImported += RepositoryImportedEventHandler;

            Initialize();
        }