Helper class for finding matches of category names.
        /// <summary>
        /// Creates a new instance.
        /// </summary>
        /// <param name="photoService">The photo service.</param>
        /// <param name="dialogService">The dialog service.</param>
        public CategoriesChooserViewModel(IPhotoService photoService, IDialogService dialogService)
        {
            _photoService = photoService;
            _dialogService = dialogService;
            _categoryMatchFinder = new CategoryMatchFinder();

            // Initialize lists
            Categories = new List<Category>();

            // Initialize commands
            AddCategoryCommand = new RelayCommand(OnAddCategory, () => CanAddCategory);
        }
        /// <summary>
        /// Creates a new instance.
        /// </summary>
        /// <param name="photoService">The photo service.</param>
        /// <param name="dialogService">The dialog service.</param>
        public CreateCategoryViewModel(IPhotoService photoService, IDialogService dialogService)
        {
            _photoService = photoService;
            _dialogService = dialogService;
            _categoryMatchFinder = new CategoryMatchFinder();

            // Initialize lists
            _categories = new List<Category>();

            // We use the Category data model as it
            // handles input validation.
            Category = new Category();

            // We need to be always up-to-date regarding input validation,
            // lets register for model changes
            Category.PropertyChanged += Category_PropertyChanged;
        }
 public void TestInit()
 {
     _categoryMatchFinder = new CategoryMatchFinder();
 }