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); }
public IEnumerable <CarEngineEntity> GetMany(EngineFilter filter) { throw new NotImplementedException(); }
public CarEngineEntity Get(EngineFilter filter) { return(Context.CarEngines .Where(x => x.Manufacturer == filter.ManufacturerName) .FirstOrDefault()); }