Exemple #1
0
        public void SeedList()
        {
            CarContent contentOne   = new CarContent("Buick", CarType.Gas, "V6", "30mpg", "Front Wheel");
            CarContent contentTwo   = new CarContent("Smart Car", CarType.Electic, "battery", "40mppg", "Front Wheel");
            CarContent contentThree = new CarContent("Hybrid Car", CarType.Hybrid, "Battery, 4 cylinder", "40mpg", "Four Wheel");

            AddToList(contentOne);
            AddToList(contentTwo);
            AddToList(contentThree);
        }
Exemple #2
0
 public void AddToList(CarContent content)
 {
     _carList.Add(content);
 }