Пример #1
0
 public void Setup()
 {
     _pageService = new Mock <IPageService>();
     _dialog      = new Mock <IUserDialogs>();
     _form        = new NewFormViewModel(_dialog.Object, _pageService.Object);
     viewModel    = new NewMultipleQuestionViewModel(true, _pageService.Object, _dialog.Object, _form);
 }
Пример #2
0
 public NewMultipleQuestionPage(bool option, NewFormViewModel formViewModel)
 {
     _viewModel = new NewMultipleQuestionViewModel(option,
                                                   new PageService(),
                                                   UserDialogs.Instance,
                                                   formViewModel);
     BindingContext = _viewModel;
     InitializeComponent();
 }