public void distributeCourrierTest() { objPostBox = new PostBox(); Assert.IsNotNull(objPostBox); Assert.AreEqual(0, objPostBox.listCourrierReceive.Count); objPostBox.distributeCourrier(); }
public City(String prmNameCity) { Console.WriteLine("Creating " + prmNameCity + " city"); nameCity = prmNameCity; objPostBox = new PostBox(); listHabitant = new List<Inhabitant>() ; Console.WriteLine("Creating 100 inhabitants"); for(int i = 1; i <= 100; i++) { listHabitant.Add(new Inhabitant(this, i)); } }