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(); }
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(); }