public TestUnlearningManager() { var container = UnityConfig.Load(); _unitOfWork = container.Resolve <IUnitOfWork>(); _unlearningWordsManager = container.Resolve <IUnlearningWordsService>(); var init = container.Resolve <IInitDefaultDb>(); init.LoadDefaultData(); _defaultDictionary = _unitOfWork.DictionaryRepository.Get().FirstOrDefault(); _wordsAllDefaultCollection = _unitOfWork.WordsRepository.Get().Where(x => x.IdDictionary == _defaultDictionary.Id).AsEnumerable(); }
public WorkSpaceCardsViewModel(IDialogService _dialogService, INavigationService _navigationService, IUnlearningWordsService unlearningManager, IAnimationService animation) : base(_dialogService, _navigationService, unlearningManager, animation) { SwipeWordCommand = new Command <string>((direction) => { SwipeWord(direction); }); }
public WorkSpaceSelectWordViewModel(IDialogService _dialogService, INavigationService _navigationService, IUnlearningWordsService unlearningManager, IAnimationService animation) : base(_dialogService, _navigationService, unlearningManager, animation) { TapWordCommand = new Command <string>(TapWord); }
public WorkSpaceEnterWordViewModel(IDialogService _dialogService, INavigationService _navigationService, IUnlearningWordsService unlearningManager, IAnimationService animation, IEntryWordValidator wordValidator) : base(_dialogService, _navigationService, unlearningManager, animation) { CheckWordCommand = new Command(async() => await CheckWord()); HintWordCommand = new Command(async() => await HintWord()); ColorEnterWord = Color.LightGray; _wordValidator = wordValidator ?? throw new ArgumentNullException(nameof(wordValidator)); }