Ejemplo n.º 1
0
    public static void DeleteAllItems()
    {
        List <TodoResponseItem> todosList = TodoClients.GetAllTodos();

        todosList.ForEach(x =>
                          TodoClients.DeleteTodoId(x.id)
                          );
    }
Ejemplo n.º 2
0
        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));
        }