/// <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(); } }
void When(UserEnabled e) { DateEnabled = e.EnabledAt; }
public void Handle(UserEnabled message) { _service.UpdateMember(message.UserId); }