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

            Stock = new ObservableCollection<PetShopAnimalViewModel>();
        }
示例#2
0
        public PetShopViewModel(IAnimalSupplier animalSupplier, IPricingModel pricingModel)
        {
            _animalSupplier = animalSupplier;
            _pricingModel   = pricingModel;

            Stock = new ObservableCollection <PetShopAnimalViewModel>();
        }
示例#3
0
        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>();
        }
示例#5
0
 public Product(string name, int cost, IPricingModel pricingModel)
 {
     this.Name         = name;
     this.cost         = cost;
     this.pricingModel = pricingModel;
 }
示例#6
0
 public Product(string name, int cost, IPricingModel pricingModel)
 {
     this.Name = name;
     this.cost = cost;
     this.pricingModel = pricingModel;
 }