static void Main(string[] args) { Console.WriteLine("Thanks for visiting Denati's vin number search."); Console.WriteLine("Please enter you vin number to find out if your vehicle is covered under warranty. "); var vinNumber = Console.ReadLine(); var vin = new Vin(vinNumber); var checker = new Checker(vin); if (checker.IsCoveredUnderWarranty()) { if (vin.VehicleCode == "HE80Z") { Console.WriteLine("The Denati Company has had a recall on several cars and yours is one of them. It appears that you own the Hyer Elon Sport, and you are entitled to new underbody aluminum reference plates at a cost of $3000"); } else if (vin.VehicleCode == "JB70Z") { Console.WriteLine("The Denati Company has had a reall on several cars and yours is one of them.It appears you own the James Bond Galore, and you are entitled to 4 new archanoid valves, each at a cost of $9.99."); } } else { Console.WriteLine("Unfortunately you are not covered under warranty"); } Console.ReadLine(); }
public Checker(Vin vinNumber) { VinNumber = vinNumber; }