Esempio n. 1
0
        public override ICar CreateCar(ToyotaModel toyotaModel)
        {
            Toyota       toyota       = new Toyota(BrandModel.Toyota, toyotaModel);
            Notification notification = CreateNotification(toyota);

            AddNotifications(notification);
            NotifyClient(notification);

            return(toyota);
        }
Esempio n. 2
0
 public Toyota(BrandModel brandModel, ToyotaModel toyotaModel)
 {
     throw new NotImplementedException();
 }
Esempio n. 3
0
 public Toyota(BrandModel brandModel, ToyotaModel toyotaModel)
 {
     BrandModel  = brandModel;
     ToyotaModel = toyotaModel;
 }
Esempio n. 4
0
 public ICar CreateToyota(ToyotaModel toyotaModel) => _factories[brand].CreateCar(toyotaModel);
Esempio n. 5
0
 public string GetModel() => ToyotaModel.ToString();
Esempio n. 6
0
 public override ICar CreateCar(ToyotaModel toyotaModel)
 {
     throw new NotImplementedException();
 }
Esempio n. 7
0
 public ICar CreateToyota(ToyotaModel toyotaModel) => throw new NotImplementedException();
Esempio n. 8
0
 public override ICar CreateCar(ToyotaModel toyotaModel) => throw new Exception("Cannot create Toyota model from Renault factory");
Esempio n. 9
0
 public abstract ICar CreateCar(ToyotaModel toyotaModel);