public override ICar CreateCar(ToyotaModel toyotaModel) { Toyota toyota = new Toyota(BrandModel.Toyota, toyotaModel); Notification notification = CreateNotification(toyota); AddNotifications(notification); NotifyClient(notification); return(toyota); }
public Toyota(BrandModel brandModel, ToyotaModel toyotaModel) { throw new NotImplementedException(); }
public Toyota(BrandModel brandModel, ToyotaModel toyotaModel) { BrandModel = brandModel; ToyotaModel = toyotaModel; }
public ICar CreateToyota(ToyotaModel toyotaModel) => _factories[brand].CreateCar(toyotaModel);
public string GetModel() => ToyotaModel.ToString();
public override ICar CreateCar(ToyotaModel toyotaModel) { throw new NotImplementedException(); }
public ICar CreateToyota(ToyotaModel toyotaModel) => throw new NotImplementedException();
public override ICar CreateCar(ToyotaModel toyotaModel) => throw new Exception("Cannot create Toyota model from Renault factory");
public abstract ICar CreateCar(ToyotaModel toyotaModel);