Beispiel #1
0
        public static void run()
        {
            var     pb     = new PersonBuilder1();
            Person1 person = pb
                             .Lives.At("123, Main Street")
                             .In("St Julians")
                             .WithPostcode("STJ 123")
                             .Works.At("GiG")
                             .AsA("Developer")
                             .Earning(10);

            Console.WriteLine(person);
        }
Beispiel #2
0
 public PersonAddressBuilder1(Person1 person)
 {
     this.person = person;
 }
Beispiel #3
0
 public PersonJobBuilder1(Person1 person)
 {
     this.person = person;
 }