public PetShopViewModel(IAnimalSupplier animalSupplier, IPricingModel pricingModel) { _animalSupplier = animalSupplier; _pricingModel = pricingModel; Stock = new ObservableCollection<PetShopAnimalViewModel>(); }
public PetShopViewModel(IAnimalSupplier animalSupplier, IPricingModel pricingModel) { _animalSupplier = animalSupplier; _pricingModel = pricingModel; Stock = new ObservableCollection <PetShopAnimalViewModel>(); }
public PetShopViewModel() { _animalSupplier = this.GetService <IAnimalSupplier>(); _pricingModel = this.GetService <IPricingModel>(); Stock = new ObservableCollection <PetShopAnimalViewModel>(); }
public PetShopViewModel() { _animalSupplier = this.GetService<IAnimalSupplier>(); _pricingModel = this.GetService<IPricingModel>(); Stock = new ObservableCollection<PetShopAnimalViewModel>(); }
public Product(string name, int cost, IPricingModel pricingModel) { this.Name = name; this.cost = cost; this.pricingModel = pricingModel; }