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