Example #1
0
 public void GetUserResourceTest()
 {
     using (JKEFactory factory = ServiceManager.CreateFactory())
     {
         IJKEService  target = factory.CreateChannel();
         string       userId = "jbrown";
         UserResource user   = target.GetUserResource(userId);
         Assert.IsNotNull(user);
         Assert.AreEqual(userId, user.UserName);
     }
 }
Example #2
0
 void AccountAccessControl_LogIn(object sender, LoginArgs e)
 {
     try
     {
         IJKEService channel = ServiceManager.GetChannel();
         this.user     = channel.GetUserResource(e.Username);
         NameText.Text = string.Format("Welcome, {0}", this.user.FirstName);
         ShowAccountsOverview();
         OnChanged("IsLoggedIn");
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }