protected override void Arrange()
        {
            DictionaryService = new Mock<IDictionaryService>();

            if (ShouldConstruct)
            {
                DictionaryViewModel = new DictionaryViewModel(DictionaryService.Object);
            }
        }
Exemplo n.º 2
0
        public ManagementViewModel(
            IAudioService audioService,
            IDictionaryService dictionaryService)
        {
            //Instantiate child VMs
            DictionaryViewModel = new DictionaryViewModel(dictionaryService);
            OtherViewModel = new OtherViewModel();
            PointingAndSelectingViewModel = new PointingAndSelectingViewModel();
            SoundsViewModel = new SoundsViewModel(audioService);
            VisualsViewModel = new VisualsViewModel();
            WordsViewModel = new WordsViewModel(dictionaryService);

            //Instantiate interaction requests and commands
            ConfirmationRequest = new InteractionRequest<Confirmation>();
            OkCommand = new DelegateCommand<Window>(Ok); //Can always click Ok
            CancelCommand = new DelegateCommand<Window>(Cancel); //Can always click Cancel
        }
Exemplo n.º 3
0
 protected override void Act()
 {
     DictionaryViewModel = new DictionaryViewModel(DictionaryService.Object);
 }