private void DoneDataSaving(string url) { Debug.Log("Get the user image Url"); UserProfilePage.SetActive(true); UserProfilePage.GetComponent <GetUserImage>().getIamge(url); LoginPage.SetActive(false); }
/// <summary> /// Returns A Profile with Images and Paged /// </summary> /// <param name="userid"></param> /// <param name="page"></param> /// <returns></returns> public UserProfilePage GetProfileByUserId(string userid, PagingParameter page) { if (string.IsNullOrEmpty(userid)) { throw new ArgumentException("User Id can't be null or empty"); } var result = ((IUserRepository)Database.UserRepository) .GetPagedUserProfile(userid, page.PageIndex, page.ItemsPerPage); var userProfile = new UserProfilePage() { User = Mapper.Map <UserDTO>(result), Images = Mapper.Map <List <ImagePost> >(result.Images), Parameters = new PagingParameter() { ItemsPerPage = page.ItemsPerPage, PageIndex = page.PageIndex, TotalItems = ((IImageRepository)Database.ImageRepository).ImagesQuantity(result.Id), } }; return(userProfile); }
public async void Initialize(UserProfilePage page) { this.userProfilePage = page; //disable controls if facebook user IsDisableControls = !Settings.IsFacebookUser; if (Settings.IsFacebookUser) { Avatar = Settings.Avatar; Name = Settings.Name; GenderIndex = Settings.Gender.ToLower() == Constants.MALE ? 0 : 1; Email = Settings.Email; } else { //BAMApp User IsBusy = true; LoadingMessage = "Loading..."; BAMAppUser user = await ServiceLocator.AzureService.GetById <BAMAppUser>(Settings.UserId); Avatar = user.Avatar; Name = user.Name; GenderIndex = user.Gender.ToLower() == Constants.MALE ? 0 : 1; Email = user.Email; Birthday = user.Birthday; PhoneNumber = user.PhoneNumber; ZipCode = user.ZipCode; } IsBusy = false; }
public void StartUp() { switch (browser) { case "Chrome": driver = new ChromeDriver(); break; case "Firefox": driver = new FirefoxDriver(); break; case "InternetExplorer": driver = new InternetExplorerDriver(); break; } driver.Manage().Window.Maximize(); driver.Navigate().GoToUrl(baseUrl); Thread.Sleep(3000); articlePageObj = new ArticlePage(driver); homePageObj = new HomePage(driver); signInPageObj = new SignInPage(driver); signUpPageObj = new SignUpPage(driver); userProfilePageObj = new UserProfilePage(driver); }
private void CachePages() { homePage = new HomePage(); customSongPage = new CustomSongPage(); modPage = new ModPage(); customEnvironmentsPage = new CustomEnvironmentsPage(); uploadPage = new UploadPage(); userProfilePage = new UserProfilePage(); settingsPage = new SettingsPage(); }
private void xUserProfileMenuItem_Click(object sender, RoutedEventArgs e) { if (mUserProfilePage == null) { mUserProfilePage = new UserProfilePage(); } mUserProfilePage.ShowAsWindow(); UpdateUserDetails(); }
static void Main() { Handle.GET("/userprofile", () => { return Db.Scope(() => { UserProfilePage page = new UserProfilePage(); page.Data = SystemUser.GetCurrentSystemUser(); return page; }); }); }
static void Main(string[] args) { ChromeOptions options = new ChromeOptions(); ChromeDriver driver = new ChromeDriver(options); driver.Manage().Window.Maximize(); driver.Url = @"http://lyubenov.com/up/"; var create = driver.ExecuteScript("show_register_form();"); RegistrationPage registrationPage = new RegistrationPage(driver); RegisterUser user = new RegisterUser("Test", "123456789", "123456789", "*****@*****.**"); registrationPage.RegistrationForm(user); registrationPage.AssertRegistrationFormExsists("Регистрирай се"); registrationPage.AssertRegisterNewUser("Your account was created successfully."); LoginPage loginPage = new LoginPage(driver); LoginUser loginUser = new LoginUser("Test", "123456789"); loginPage.LoginForm(loginUser); loginPage.AssertSiteIsLoaded("http://lyubenov.com/up/"); loginPage.AssertUserIsLogged("You are logged successfully. Redirecting..."); ManagePasswordPage page = new ManagePasswordPage(driver); LoginUser loggedUser = new LoginUser("*****@*****.**"); page.ChangePassword(loggedUser); page.AssertEmailIsSend("Your new password was sent successfully."); UserProfilePage userProfilePage = new UserProfilePage(driver); userProfilePage.LoginFormAndUploadFile(loginUser); userProfilePage.AssertFileIsUpload("Drag & Drop files or Click"); userProfilePage.SearchUploadedFiles(); userProfilePage.AssertSearchFileExists("1.png"); userProfilePage.ChangeOlderPasswordWithNewPassword(); userProfilePage.AssertOlderPasswordIsChangedWithNewPassword("OK: YOUR PASSWORD WAS CHANGED."); userProfilePage.Logout.Click(); userProfilePage.AssertLogoutUser("Web Cloud Test Server"); }
public void CheckLogoutUser() { UserProfilePage userProfilePage = new UserProfilePage(this.driver); userProfilePage.NavigateTo(); var username = "******"; var password = "******"; LoginUser user = new LoginUser(username, password); userProfilePage.LoginForm(user); userProfilePage.Logout.Click(); userProfilePage.AssertLogoutUser("Web Cloud Test Server"); }
public void CheckFileIsUpload() { UserProfilePage userProfilePage = new UserProfilePage(this.driver); userProfilePage.NavigateTo(); var username = "******"; var password = "******"; LoginUser user = new LoginUser(username, password); userProfilePage.LoginFormAndUploadFile(user); userProfilePage.AssertFileIsUpload("Drag & Drop files or Click"); userProfilePage.DragAndDrobOrClickButton.Click(); }
public void CheckOlderPasswordIsChangedWithNewPassword() { UserProfilePage userProfilePage = new UserProfilePage(this.driver); userProfilePage.NavigateTo(); var username = "******"; var password = "******"; LoginUser user = new LoginUser(username, password); userProfilePage.LoginForm(user); userProfilePage.ChangeOlderPasswordWithNewPassword(); userProfilePage.AssertOlderPasswordIsChangedWithNewPassword("OK: YOUR PASSWORD WAS CHANGED."); }
public void CheckSearchFileExists() { UserProfilePage userProfilePage = new UserProfilePage(this.driver); userProfilePage.NavigateTo(); var username = "******"; var password = "******"; LoginUser user = new LoginUser(username, password); userProfilePage.LoginFormAndUploadFile(user); userProfilePage.SearchUploadedFiles(); userProfilePage.AssertSearchFileExists("1.png"); }
public void Click(string p0) { switch (p0) { case "consent checkbox": _registerPage.ClickConsentButton(); break; case "Register button": _registerPage.ClickRegisterButton(); break; case "radio button": NewPasswordPage.ClickReceiveInformation(true); break; case "confirmation button": NewPasswordPage.CompleteRegistration(); break; case "triangle right to the name": HomePage.ClickOnTriangle(); break; case "User profile button": _userProfilePage = HomePage.ClickOnUserProfileLink(); break; case "Account cancellation button": _accountCancellationPage = _userProfilePage.GoToAddressCancellation(); break; case "confirmation of cancellation": _accountCancellationPage.ClickWantToCancel(); break; case "Cancel button": _verificationPage = _accountCancellationPage.ClickCancelButton(); break; case "Save changes button": _homePage = _verificationPage.ConfirmDelete(); break; } }
public void WhenIClickManageProfileTab() { _userProfilePage = GetPage <UserProfilePage>(); _userProfilePage.ManageProfileTabLink.Click(); }
public void ThenProfilePropertyIsNotEditable(string propertyName) { Assert.IsFalse(UserProfilePage.GetProfilePropertyTextField(propertyName).Exists); }
private void BtnBack_Click(object sender, RoutedEventArgs e) { UserProfilePage userProfilePage = new UserProfilePage(); this.NavigationService.Navigate(userProfilePage); }
public void ThenProfilePropertyIsNotVisible(string propertyName) { Thread.Sleep(1500); Assert.IsFalse(UserProfilePage.GetProfilePropertyDiv(propertyName).Exists); }
public void WhenIClickEditProfile() { _userProfilePage = GetPage <UserProfilePage>(); _userProfilePage.EditProfileLink.Click(); }
public App() { InitIOC(); MainPage = new UserProfilePage(); }
public override void Prepare(BotStateBuilder botState) { _userProfilePage = new UserProfilePage(botState.Driver); }