public static void DeleteAllItems() { List <TodoResponseItem> todosList = TodoClients.GetAllTodos(); todosList.ForEach(x => TodoClients.DeleteTodoId(x.id) ); }
public void TestAddNewTodoItem() { // given var newItem = new TodoRequest("yoga", false); // when TodoClients.PostNewTodoItem(newItem); // then List <TodoResponseItem> resultList = TodoClients.GetAllTodos(); Assert.True(ItemOperations.todoContains(newItem.Name, newItem.IsComplete, resultList)); }