using System.Collections.Generic;
public class VehicleService : IVehicleService
public IEnumerable<Vehicle> SearchVehicles(string make, string year, string model)
VehicleDataService vehicleDataService = new VehicleDataService();
return vehicleDataService.GetVehicles(make, year, model);
public interface IVehicleService
IEnumerable<Vehicle> SearchVehicles(string make, string year, string model);
public class VehicleDataService
public IEnumerable<Vehicle> GetVehicles(string make, string year, string model)
return new List<Vehicle>();
public interface IVehicleDataService
IEnumerable<Vehicle> GetVehicles(string make, string year, string model);
public class LoggingService : ILoggingService
public void LogInfo(string msg)
public void LogError(string msg)
public interface ILoggingService
void LogInfo(string msg);
void LogError(string msg);
public int ID { get; set; }
public string Make { get; set; }
public string Year { get; set; }
public string Model { get; set; }