예제 #1
0
 /// <summary>
 /// Disables the user.
 /// </summary>
 public void DisableTheUser()
 {
     try
     {
         if (AccountEnabled.GetAttribute("checked").Contains("false"))
         {
             return;
         }
         EditButton.Click();
         UserEnabled.Click();
         SaveUserButton.Click();
         BackToListButton.Click();
     }
     catch (Exception)
     {
         EditButton.Click();
         UserEnabled.Click();
         SaveUserButton.Click();
         BackToListButton.Click();
     }
 }
예제 #2
0
 void When(UserEnabled e)
 {
     DateEnabled = e.EnabledAt;
 }
예제 #3
0
 public void Handle(UserEnabled message)
 {
     _service.UpdateMember(message.UserId);
 }