public PetShopViewModel(IAnimalSupplier animalSupplier, IPricingModel pricingModel)
        {
            _animalSupplier = animalSupplier;
            _pricingModel = pricingModel;

            Stock = new ObservableCollection<PetShopAnimalViewModel>();
        }
Exemple #2
0
        public PetShopViewModel()
        {
            _animalSupplier = this.GetService <IAnimalSupplier>();
            _pricingModel   = this.GetService <IPricingModel>();

            Stock = new ObservableCollection <PetShopAnimalViewModel>();
        }
Exemple #3
0
        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>();
        }