private async void CurrentUserSignIn() { CurrentUser = new CurrentUser("*****@*****.**", "mike2009"); // debug if (CurrentUser.SignIn()) { CurrentUser.Relationships = new Relationships(); CurrentUser.Feed = new Core.Feed(CurrentUser.Relationships); SwitchView("PivotView"); } else { await ShowDialog("Sign in failed. Check internet connection or email and password?"); } //foreach (var s in CurrentUser.ErrorInformation) //{ // MSG += s; //} //foreach (var s in CurrentUser.Relationships.ErrorInformation) //{ // MSG += s; //} }
public void setup() { currentUser = new CurrentUser("*****@*****.**", "mike2009"); currentUser.SignIn(); }
public void CurrentUser_SignInValidCredentials_ReturnsTrue() { CurrentUser cu = new CurrentUser("*****@*****.**", "mike2009"); Assert.IsTrue(cu.SignIn()); }