public BeerDescriptionViewModel(Beer beer)
 {
     BreweryStore = ServiceLocator.Instance.Resolve<IBreweryStore>();
     RatingStore = ServiceLocator.Instance.Resolve<IRatingStore>();
     SearchProvider = ServiceLocator.Instance.Resolve<IDeviceSearchProvider>();
     
     Beer = beer;
     SearchProvider.AddBeerToIndex(beer); 
 }
Ejemplo n.º 2
0
        public BeerDescriptionViewModel(Beer beer)
        {
            BreweryStore   = ServiceLocator.Instance.Resolve <IBreweryStore>();
            RatingStore    = ServiceLocator.Instance.Resolve <IRatingStore>();
            SearchProvider = ServiceLocator.Instance.Resolve <IDeviceSearchProvider>();

            Beer = beer;
            SearchProvider.AddBeerToIndex(beer);
        }
Ejemplo n.º 3
0
 public UserProfileViewModel()
 {
     userStore   = ServiceLocator.Instance.Resolve <IUserStore>();
     ratingStore = ServiceLocator.Instance.Resolve <IRatingStore>();
     wishStore   = ServiceLocator.Instance.Resolve <IWishStore>();
 }
 public UserProfileViewModel()
 {
     userStore = ServiceLocator.Instance.Resolve<IUserStore>();
     ratingStore = ServiceLocator.Instance.Resolve<IRatingStore>();
     wishStore = ServiceLocator.Instance.Resolve<IWishStore>();
 }