public StoryService(IHackerNewsService hackerNewsService, IStoryRepository storyRepository, IStoryCommentsRepository storyCommentsRepository, ITextToSpeech textToSpeech) { _hackerNewsService = hackerNewsService; _storyRepository = storyRepository; this.storyCommentsRepository = storyCommentsRepository; _textToSpeech = textToSpeech; }
public StoryCommentsViewModel(IStoryService storyService, IStoryCommentsRepository storyCommentsRepository, ICrashReportService crashReportService) { this.storyService = storyService; this.storyCommentsRepository = storyCommentsRepository; this.crashReportService = crashReportService; CommentItems = new ObservableCollection <ItemCommentModel>(); LoadStoryCommentsCommand = new Command <List <long> >(ExecuteLoadStoryCommentCommand); }