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(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>(); }