public TemplateViewModel(ITemplateRepository templateRepository, IJournalRepository journalRepository, IAccountRepository accountRepository) { _templateRepository = templateRepository; _journalRepository = journalRepository; _accountRepository = accountRepository; var journals = _templateRepository.GetTemplateJournals(); _template = templateRepository.GetAll().Single(); _journalVMs = new ObservableCollection<JournalViewModel>(); foreach (var journal in journals.OrderBy(x => x.Date)) AddJournalToInternalCollection(journal); }