예제 #1
0
        public void distributeCourrierTest()
        {
            objPostBox = new PostBox();

            Assert.IsNotNull(objPostBox);
            Assert.AreEqual(0, objPostBox.listCourrierReceive.Count);
            objPostBox.distributeCourrier();
        }
예제 #2
0
파일: City.cs 프로젝트: ALefaux/Courrier
        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));
            }
        }