Example #1
0
        public void Demonstrate()
        {
            int goldForKil = 1023;


            var joe = new ProperPerson {
                Name = "Joe"
            };
            var tom = new ProperPerson {
                Name = "Tom"
            };
            var brian = new ProperPerson {
                Name = "Brian"
            };
            var sam = new ProperPerson {
                Name = "Sam"
            };
            var bob = new ProperPerson {
                Name = "Bob"
            };
            var tommy = new ProperPerson {
                Name = "tommy"
            };


            var bandT = new ProperGroup {
                Memners = new List <Party> {
                    bob, tommy
                }
            };

            var developers = new ProperGroup {
                Name = "Developers", Memners = new List <Party> {
                    joe, tom, brian, bandT
                }
            };



            var parties = new ProperGroup {
                Memners = new List <Party> {
                    developers, sam
                }
            };


            parties.Gold = goldForKil;

            //  parties.Stats();



            Console.ReadKey();
        }
Example #2
0
        public void Demonstrate()
        {
            int goldForKil = 1023;

            var joe = new ProperPerson { Name = "Joe" };
            var tom = new ProperPerson { Name = "Tom" };
            var brian = new ProperPerson { Name = "Brian" };
            var sam = new ProperPerson { Name = "Sam" };
            var bob = new ProperPerson { Name = "Bob" };
            var tommy = new ProperPerson { Name = "tommy" };

            var bandT = new ProperGroup { Memners = new List<Party> { bob, tommy } };

            var developers = new ProperGroup { Name = "Developers", Memners = new List<Party> { joe, tom, brian,bandT } };

            var parties = new ProperGroup { Memners = new List<Party> { developers, sam }  };

            parties.Gold = goldForKil;

              //  parties.Stats();

            Console.ReadKey();
        }