Je m’appelle Thibaut Assus, j’ai 30 ans, je suis freelance en développement web et ma technologie de prédilection est le Ruby on Rails. J’ai maintenant un peu d’expérience dans le domaine du freelancing et ce document a pour but de partager avec vous une partie de cette expérience.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Imagine you have a Cart with items you can add into | |
public class Cart | |
{ | |
public int Id {get;private set} | |
public List<CartItem> Items {get;private set} | |
public Cart(int id) { Id = id;} | |
//while writing your tests, you (want to) arrive to these checks (3 situations to test) | |
public void AddItem(CartItem item) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
class Node { | |
public string Text { get; private set; } | |
public IList<Node> Children { get; private set; } |