Exemple #1
0
 public static IAction <Unit> AddToDoItem(string title)
 {
     return(new DefaultCompositeAction(
                $"Add item '{title}'",
                Enter.TheValue(title).Into(NewToDoItemInput),
                Hit.Enter().Into(NewToDoItemInput)));
 }
Exemple #2
0
 public ToDoItem(string title) :
     base(t => t.And(Enter.TheValue(title).Into(ToDoPage.NewToDoItemInput))
          .And(Hit.Enter().Into(ToDoPage.NewToDoItemInput)))
 {
     Title = title;
 }