Esempio n. 1
0
        public void executeContentTest()
        {
            objCity = new City("Starling");
            objRegisteredLetter = new RegisteredLetter(new Sender(objCity.listHabitant[0]), new Receiver(objCity.listHabitant[1]), new SimpleLetter(new Sender(objCity.listHabitant[0]), new Receiver(objCity.listHabitant[1]), "bla bla"));

            objRegisteredLetter.executeContent();
        }
Esempio n. 2
0
 public void createRegisteredLetter(Inhabitant prmReceiver, Letter prmLetter)
 {
     Letter objRegisteredLetter = new RegisteredLetter(new Sender(this), new Receiver(prmReceiver), prmLetter);
     this.postLetter(prmReceiver, objRegisteredLetter);
 }