Example #1
0
        public ConvertableList<Crossbow> BuildAll()
        {
            var list = new ConvertableList<Crossbow>();

            list.Add(new Crossbow {Length = 1, Type = "Pull lever"});
            list.Add(new Crossbow {Length = 1.25, Type = "Pull lever"});
            list.Add(new Crossbow {Length = 1.25, Type = "Push lever"});
            list.Add(new Crossbow {Length = 1.25, Type = "Cranequin (Rack & Pinion)"});
            list.Add(new Crossbow {Length = 1.25, Type = "Windlass"});

            return list;
        }
Example #2
0
        public ConvertableList<City> BuildAll()
        {
            var list = new ConvertableList<City>();

            list.Add(new City {Name = "Moscow", Country = new Country(){Name = "Russia"}});
            list.Add(new City {Name = "Washington, D.C.", Country = new Country(){Name = "USA"}});
            list.Add(new City {Name = "Ottawa", Country = new Country(){Name = "Ottawa"}});
            list.Add(new City {Name = "Mexico City", Country = new Country(){Name = "Mexico"}});
            list.Add(new City {Name = "Bogota", Country = new Country(){Name = "Columbia"}});

            return list;
        }