Example #1
0
 /// <summary>ProcessInput is used to receive the user input during this state.</summary>
 /// <param name="command">The command text to be processed.</param>
 public override void ProcessInput(string command)
 {
     if (command.ToLower() == "yes" || command.ToLower() == "y")
     {
         Session.User = new User()
         {
             AccountCreationDate = DateTime.Now,
         };
         StateMachine.HandleNextStep(this, StepStatus.Success);
     }
     else
     {
         StateMachine.AbortCreation();
     }
 }