Example #1
0
        public void BuildEngine(string engineType)
        {
            EngineFilter filter = new EngineFilter(VehicleManufacturerName);

            var engineEntity = _carEngineProvider.Get(filter);

            this.Engine = new Engine(engineEntity.Manufacturer, engineEntity.ModelNumber, engineEntity.BHP, engineEntity.FuelType);
        }
Example #2
0
 public IEnumerable <CarEngineEntity> GetMany(EngineFilter filter)
 {
     throw new NotImplementedException();
 }
Example #3
0
 public CarEngineEntity Get(EngineFilter filter)
 {
     return(Context.CarEngines
            .Where(x => x.Manufacturer == filter.ManufacturerName)
            .FirstOrDefault());
 }