Exemplo n.º 1
0
        public void WhenISwitchInUserSettings(string status, string element)
        {
            UserSettingsPage userSettingsPage = new UserSettingsPage();
            var result = userSettingsPage.CheckboxStatusCheck(element);

            switch (status)
            {
            case "on":


                if (!result)
                {
                    userSettingsPage.AutoLoadServicesCheckboxClick(element);
                    Console.WriteLine("Тест завалился");
                }

                break;

            case "off":
                if (result)
                {
                    userSettingsPage.AutoLoadServicesCheckboxClick(element);
                    Console.WriteLine("Тест завалился");
                }

                break;

            default:       // НАХРЕНА??
                break;     // НАХРЕНА??
            }
            //ScenarioContext.Current.Pending();
        }
Exemplo n.º 2
0
        private void xUserSettingsMenuItem_Click(object sender, RoutedEventArgs e)
        {
            if (mUserSettingsPage == null)
            {
                mUserSettingsPage = new UserSettingsPage();
            }

            mUserSettingsPage.ShowAsWindow();
        }
Exemplo n.º 3
0
        public void NavigateTo(string uri)
        {
            this.MenuButtons.ForEach(x => x.IsSelected = false);
            var resBtn = this.MenuButtons.FirstOrDefault(x => x.Uri == uri);

            if (resBtn != null)
            {
                resBtn.IsSelected = true;
            }

            switch (uri)
            {
            case "store":
                Source = new ApplicationListPage(new ApplicationsListViewModel(App.InjectContainer.Resolve <ISeacRuntimeClient>(), "Store", System.Windows.Visibility.Collapsed));
                break;

            case "library":
                Source = new ApplicationListPage(new ApplicationsListViewModel(App.InjectContainer.Resolve <ISeacRuntimeClient>(), "Library", System.Windows.Visibility.Visible));
                break;

            case "settings":
                Source = new SettingsPage();
                break;

            case "usersettings":
                Source = new UserSettingsPage(new UserSettingsViewModel(navigateWindow, App.InjectContainer.Resolve <IBaseTokenService>()));
                break;

            case "report":
                Source = new ReportPage();
                break;

            case "develop":
                Source = new DevelopmentPage();
                break;
            }

            OnPropertyChanged("Source");
        }
Exemplo n.º 4
0
        public void OnAccountSettings()
        {
            UserSettingsPage Page = new UserSettingsPage(user);

            Application.Current.MainPage = Page;
        }
Exemplo n.º 5
0
        public void ThenIClickSettingsSaveButton()
        {
            UserSettingsPage userSettingsPage = new UserSettingsPage();

            userSettingsPage.SaveBtnClick();
        }