public ProximityViewModel(INavigationService navigationService, IFavoriteService favoriteService)
     : base(navigationService, favoriteService)
 {
     this.navigationService = navigationService;
     this.ProximityProcess = new ProximityProcess();
     this.ProximityProcess.PropertyChanged += ProximityProcess_PropertyChanged;
 }
 public AjaxContentController(
      ICityCateService CityCateService,
      IArticleCateService ArticleCateService,
      IMemberService MemberService,
      IMediaCateService MediaCateService,
      IFormatCateService FormatCateService,
      IPeriodCateService PeriodCateService,
      IOwnerCateService OwnerCateService,
      IFavoriteService FavoriteService,
      ISchemeItemService SchemeItemService,
      ISchemeService SchemeService,
     IOutDoorService OutDoorService,
     IOutDoorLuceneService OutDoorLuceneService
   )
 {
     this.CityCateService = CityCateService;
     this.ArticleCateService = ArticleCateService;
     this.MemberService = MemberService;
     this.MediaCateService = MediaCateService;
     this.FormatCateService = FormatCateService;
     this.PeriodCateService = PeriodCateService;
     this.OwnerCateService = OwnerCateService;
     this.FavoriteService = FavoriteService;
     this.SchemeItemService = SchemeItemService;
     this.SchemeService = SchemeService;
     this.OutDoorService = OutDoorService;
     this.OutDoorLuceneService = OutDoorLuceneService;
 }
Example #3
0
 public FavoriteController(
     IFavoriteService FavoriteService
     , IOutDoorService OutDoorService
     )
 {
     this.FavoriteService = FavoriteService;
     this.OutDoorService = OutDoorService;
 }
 public FavoriteServiceTests()
 {
     this.service = new FavoriteService();
     service.Add(new Favorite { Name = "Pie" }
         );
     service.Add(new Favorite { Name = "Cake" }
         );
 }
Example #5
0
 public UserController(
     IUserServices userService,
     IFavoriteService favService,
     IMapper mapper,
     IOptions <AppSettings> appSettings)
 {
     _userService = userService;
     _favService  = favService;
     _mapper      = mapper;
     _appSettings = appSettings.Value;
 }
 public PromotionDataService(IPromotionService promotionService, ICouponService couponService, IPromotionBrandRelationRepository promotionBrandRelationRepository, IPromotionRepository promotionRepository, IFavoriteService favoriteService, IShareService shareService, ICouponDataService couponDataService, IResourceService resourceService)
 {
     _promotionRepository = promotionRepository;
     _favoriteService     = favoriteService;
     _shareService        = shareService;
     _couponDataService   = couponDataService;
     _resourceService     = resourceService;
     _promotionBrandRelationRepository = promotionBrandRelationRepository;
     _couponService    = couponService;
     _promotionService = promotionService;
 }
Example #7
0
 public FavoriteController(IFavoriteService FavoriteService, ICategoryService CategoryService, ILocationService LocationService, ILocationImagesService LocationImagesService, ILocationTagService LocationTagService, ICustomerService CustomerService, ILocationPurchaseService LocationPurchaseService, INotificationService NotificationService)
 {
     this._FavoriteService         = FavoriteService;
     this._LocationService         = LocationService;
     this._LocationImagesService   = LocationImagesService;
     this._CustomerService         = CustomerService;
     this._LocationPurchaseService = LocationPurchaseService;
     this._LocationTagService      = LocationTagService;
     this._NotificationService     = NotificationService;
     this._CategoryService         = CategoryService;
 }
 public PromotionDataService(IPromotionService promotionService, ICouponService couponService, IPromotionBrandRelationRepository promotionBrandRelationRepository, IPromotionRepository promotionRepository, IFavoriteService favoriteService, IShareService shareService, ICouponDataService couponDataService, IResourceService resourceService)
 {
     _promotionRepository = promotionRepository;
     _favoriteService = favoriteService;
     _shareService = shareService;
     _couponDataService = couponDataService;
     _resourceService = resourceService;
     _promotionBrandRelationRepository = promotionBrandRelationRepository;
     _couponService = couponService;
     _promotionService = promotionService;
 }
Example #9
0
 public FavoriteServiceTests()
 {
     this.service = new FavoriteService();
     service.Add(new Favorite {
         Name = "Pie"
     }
                 );
     service.Add(new Favorite {
         Name = "Cake"
     }
                 );
 }
Example #10
0
        public async Task AddToFavoritesAsync_WithInValidDataWithNotFoundOffer_ShouldNotAddOfferToFavorites()
        {
            var expectedOffersCount = 1;
            var guid = Guid.NewGuid().ToString();

            var moqUsersService = new Mock <IUserService>();

            moqUsersService.Setup(x => x.GetCurrentUserId())
            .Returns("CurrentUserId");

            var moqCategoriesService = new Mock <ICategoryService>();
            var moqCloudinaryService = new Mock <ICloudinaryService>();
            var moqIFormFile         = new Mock <IFormFile>();

            moqCloudinaryService.Setup(x => x.UploadPhotoAsync(moqIFormFile.Object, "FileName", "Folder"))
            .ReturnsAsync("http://test.com");

            var createOfferInputModel = new CreateOfferModel
            {
                Name         = "Wow Account",
                CategotyName = "Wow",
                CreatorId    = guid,
                Description  = "Some Test Description",
                Price        = 10.00,
                PicUrl       = "link",
            };

            var user = new ApplicationUser()
            {
                Id       = guid,
                UserName = "******",
            };

            var context      = InitializeContext.CreateContextForInMemory();
            var offerService = new OfferService(context, moqCategoriesService.Object, moqCloudinaryService.Object);

            this.favoriteService = new FavoriteService(context, offerService);

            var approvedOffer = await offerService.CreateOfferAsync(createOfferInputModel);

            await offerService.ApproveOfferAsync(approvedOffer.Id);

            context.Users.Add(user);
            await context.SaveChangesAsync();

            // Assert
            var result = await this.favoriteService.AddToFavoritesAsync("InvalidID", guid);

            var userFav = await context.UserFavorites.FirstOrDefaultAsync(x => x.OfferId == "InvalidID" && x.UserId == guid);

            Assert.Null(userFav);
            Assert.False(result);
        }
Example #11
0
 public HomeController(
     IFavoriteService favoriteService,
     UserManager <ApplicationUser> userManager,
     ICategoryService categoryService,
     IBookService bookService,
     IAuthorService authorService)
 {
     this.favoriteService = favoriteService;
     this.userManager     = userManager;
     this.categoryService = categoryService;
     this.bookService     = bookService;
     this.authorService   = authorService;
 }
 public FavoriteController(
     IFavoriteService favService,
     IMapper mapper,
     IOptions <AppSettings> appSettings,
     ICoordinateService coordService,
     ICategoryServices categoryService
     )
 {
     _favService      = favService;
     _mapper          = mapper;
     _appSettings     = appSettings.Value;
     _coordService    = coordService;
     _categoryService = categoryService;
 }
Example #13
0
 public ViewModelBase(INavigationService navigationService, IEventAggregator eventAggregator, IStoreManager storeManager, IToast toast, IFavoriteService favoriteService, ILoggerFacade logger, ILaunchTwitter twitter, ISSOClient ssoClient, IPushNotifications pushNotifications, IReminderService reminderService, IPageDialogService pageDialogService)
 {
     Navigation        = navigationService;
     EventAggregator   = eventAggregator;
     StoreManager      = storeManager;
     Toast             = toast;
     FavoriteService   = favoriteService;
     Logger            = logger;
     SSOClient         = ssoClient;
     PushNotifications = pushNotifications;
     ReminderService   = reminderService;
     PageDialogService = pageDialogService;
     LaunchTwitter     = twitter;
 }
 public PlayerController(
     IUserService userService,
     IDetailsService detailsService,
     IClubService clubService,
     ICityService cityService,
     IFavoriteService favorService,
     IPlayTimeService playTimeService)
 {
     this.userService     = userService;
     this.detailsService  = detailsService;
     this.clubService     = clubService;
     this.cityService     = cityService;
     this.favorService    = favorService;
     this.playTimeService = playTimeService;
 }
        public BrowserViewModel(IFavoriteService favoriteService, INavigationService navigationService, IAccountService accountService, IHomePageService homePageService)
        {
            _favoriteService   = favoriteService;
            _navigationService = navigationService;
            _accountService    = accountService;
            _homePageService   = homePageService;
            FavoriteForm       = new CreateFavorite();
            Favorites          = new ObservableCollection <Favorite>();

            InitializeWebView();
            InitializeCommands();

            HomePageUri = new HomePage();
            FavoriteForm.CanExecuteChanged = AddFavoriteCommand.RaiseCanExecuteChanged;
        }
Example #16
0
 public ApiController(
     IOfferService offerService,
     IFavoriteService favoriteService,
     IUserService userService,
     IMessagesService messagesService,
     ICategoryService categoryService,
     ApplicationDbContext context)
 {
     this.offerService    = offerService;
     this.favoriteService = favoriteService;
     this.userService     = userService;
     this.messagesService = messagesService;
     this.categoryService = categoryService;
     this.context         = context;
 }
 public MovieController(IMovieService ms, IMarkService marks, IUserService us, IFavoriteService fs)
 {
     movieService = ms;
     markService = marks;
     userService = us;
     favoriteService = fs;
     var scale = new SelectList(
         new int[] { 1, 2, 3, 4, 5 }.Select(
             x => new SelectListItem
             {
                 Value = x.ToString(),
                 Text = x.ToString()
             }),
         "value",
         "text");
     ViewBag.MarkScale = scale;
 }
Example #18
0
        public SchemeController(
            IMemberService MemberService,
            IEmailService EmailService,
            ICompanyService CompanyService,
            IMember_ActionService Member_ActionService,
            ICityCateService CityCateService,
            ICompanyCredentialsImgService CompanyCredentialsImgService,
            ICompanyNoticeService CompanyNoticeService,
            ICompanyMessageService CompanyMessageService,
            IOutDoorService OutDoorService,
            IIndustryCateService IndustryCateService,
            ICrowdCateService CrowdCateService,
            IOwnerCateService OwnerCateService,
            IAreaCateService AreaCateService,
            IPurposeCateService PurposeCateService,
            IFormatCateService FormatCateService,
            IPeriodCateService PeriodCateService,
            IFavoriteService FavoriteService,
            ISchemeItemService SchemeItemService,
            ISchemeService SchemeService,
            IOutDoorLuceneService OutDoorLuceneService

            )
        {
            this.MemberService = MemberService;
            this.EmailService = EmailService;
            this.CompanyService = CompanyService;
            this.Member_ActionService = Member_ActionService;
            this.CityCateService = CityCateService;
            this.CompanyCredentialsImgService = CompanyCredentialsImgService;
            this.CompanyNoticeService = CompanyNoticeService;
            this.CompanyMessageService = CompanyMessageService;
            this.OutDoorService = OutDoorService;
            this.IndustryCateService = IndustryCateService;
            this.CrowdCateService = CrowdCateService;
            this.OwnerCateService = OwnerCateService;
            this.AreaCateService = AreaCateService;
            this.PurposeCateService = PurposeCateService;
            this.FormatCateService = FormatCateService;
            this.PeriodCateService = PeriodCateService;
            this.FavoriteService = FavoriteService;
            this.SchemeItemService = SchemeItemService;
            this.SchemeService = SchemeService;
            this.OutDoorLuceneService = OutDoorLuceneService;
        }
Example #19
0
        public SchemeController(
            IMemberService MemberService,
            IEmailService EmailService,
            ICompanyService CompanyService,
            IMember_ActionService Member_ActionService,
            ICityCateService CityCateService,
            ICompanyCredentialsImgService CompanyCredentialsImgService,
            ICompanyNoticeService CompanyNoticeService,
            ICompanyMessageService CompanyMessageService,
            IOutDoorService OutDoorService,
            IIndustryCateService IndustryCateService,
            ICrowdCateService CrowdCateService,
            IOwnerCateService OwnerCateService,
            IAreaCateService AreaCateService,
            IPurposeCateService PurposeCateService,
            IFormatCateService FormatCateService,
            IPeriodCateService PeriodCateService,
            IFavoriteService FavoriteService,
            ISchemeItemService SchemeItemService,
            ISchemeService SchemeService,
            IOutDoorLuceneService OutDoorLuceneService

            )
        {
            this.MemberService                = MemberService;
            this.EmailService                 = EmailService;
            this.CompanyService               = CompanyService;
            this.Member_ActionService         = Member_ActionService;
            this.CityCateService              = CityCateService;
            this.CompanyCredentialsImgService = CompanyCredentialsImgService;
            this.CompanyNoticeService         = CompanyNoticeService;
            this.CompanyMessageService        = CompanyMessageService;
            this.OutDoorService               = OutDoorService;
            this.IndustryCateService          = IndustryCateService;
            this.CrowdCateService             = CrowdCateService;
            this.OwnerCateService             = OwnerCateService;
            this.AreaCateService              = AreaCateService;
            this.PurposeCateService           = PurposeCateService;
            this.FormatCateService            = FormatCateService;
            this.PeriodCateService            = PeriodCateService;
            this.FavoriteService              = FavoriteService;
            this.SchemeItemService            = SchemeItemService;
            this.SchemeService                = SchemeService;
            this.OutDoorLuceneService         = OutDoorLuceneService;
        }
Example #20
0
        public MovieController(IMovieService ms, IMarkService marks, IUserService us, IFavoriteService fs)
        {
            movieService    = ms;
            markService     = marks;
            userService     = us;
            favoriteService = fs;
            var scale = new SelectList(
                new int[] { 1, 2, 3, 4, 5 }.Select(
                    x => new SelectListItem
            {
                Value = x.ToString(),
                Text  = x.ToString()
            }),
                "value",
                "text");

            ViewBag.MarkScale = scale;
        }
        /// <summary>重新加载</summary>
        private void Reload()
        {
            if (this.restartCount > 0)
            {
                // 重新加载配置信息
                FavoriteConfigurationView.Instance.Reload();
            }

            this.configuration = FavoriteConfigurationView.Instance.Configuration;

            // 创建对象构建器(Spring.NET)
            string springObjectFile = this.configuration.Keys["SpringObjectFile"].Value;

            SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(FavoriteConfiguration.ApplicationName, springObjectFile);

            // 创建数据服务对象
            this.m_FavoriteService = objectBuilder.GetObject <IFavoriteService>(typeof(IFavoriteService));
        }
Example #22
0
 public ArticleController(ILogger <ArticleController> logger,
                          IArticleService service,
                          IThumbService thumbService,
                          IFavoriteService favoriteService,
                          IAccountService accountService,
                          IFollowService followService,
                          IWebHostEnvironment hostEnvironment,
                          ITopicService topicService,
                          IIdentityUser <int, LoginAuthModel> identityUser)
 {
     _logger          = logger;
     _service         = service;
     _thumbService    = thumbService;
     _favoriteService = favoriteService;
     _accountService  = accountService;
     _followService   = followService;
     _hostEnvironment = hostEnvironment;
     _topicService    = topicService;
     _identityUser    = identityUser;
 }
 public ProductDataService(IPromotionDataService promotionDataService, IPromotionService promotionService,
     ICouponService couponService, IResourceService resourceService, IProductRepository productRepository,
     IShareService shareService, IFavoriteService favoriteService, ICouponDataService couponDataService,
     IPromotionRepository promotionRepo,
     IProductPropertyRepository productpropertyRepo,
     IProductPropertyValueRepository productpropertyvalueRepo,
     IProductCode2StoreCodeRepository productcodemapRepo)
 {
     _promotionDataService = promotionDataService;
     _productRepository = productRepository;
     _shareService = shareService;
     _favoriteService = favoriteService;
     _couponDataService = couponDataService;
     _resourceService = resourceService;
     _couponService = couponService;
     _promotionService = promotionService;
     _promotionRepo = promotionRepo;
     _productpropertyRepo = productpropertyRepo;
     _productpropertyvalueRepo = productpropertyvalueRepo;
     _productcodemapRepo = productcodemapRepo;
 }
        public SearchViewModel(ISearchService searchService, INavigationService navigationService, IFavoriteService favoriteService)
            : base(navigationService, favoriteService)
        {
            this.searchService = searchService;
            this.navigationService = navigationService;
            SearchOptions = new ObservableCollection<SearchOption>()
            {
                new SearchOption("Classes", "class"),
                new SearchOption("Domains", "domain"),
                new SearchOption("Equipment", "equipment"),
                new SearchOption("Feats", "feat"),
                new SearchOption("Items", "item"),
                new SearchOption("Monsters", "monster"),
                new SearchOption("Powers", "power"),
                new SearchOption("Skills", "skill"),
                new SearchOption("Spells", "spell"),
            };

            SearchResults = new ObservableCollection<Group<IEntry>>();
            selectedCategories = new List<string>();
        }
Example #25
0
 public CustomerController(IOrderService orderService,
                           ICacheManager cacheManager,
                           ICustomerAttributeService customerAttributeService,
                           ICustomerService customerService,
                           IShopppingCartService cartService,
                           IFavoriteService favoriteService,
                           ICustomerRewardService rewardService,
                           IProductReviewService reviewService,
                           IApplyPromoterService applyService,
                           ISettingService settingService,
                           ICouponService couponService,
                           ISMSMessageService messageService,
                           ILoanService loanService,
                           IApplyCashService applyCashService,
                           ICommissionService commissionServicer,
                           IWishOrderService wishService,
                           ISignLogService signService,
                           IUnitOfWorkManager unitOfWorkManager)
 {
     this._orderService             = orderService;
     this._cacheManager             = cacheManager;
     this._customerAttributeService = customerAttributeService;
     this._cartService        = cartService;
     this._customerService    = customerService;
     this._messageService     = messageService;
     this._favoriteService    = favoriteService;
     this._reviewService      = reviewService;
     this._rewardService      = rewardService;
     this._settingService     = settingService;
     this._couponService      = couponService;
     this._applyService       = applyService;
     this._loanService        = loanService;
     this._applyCashService   = applyCashService;
     this._commissionServicer = commissionServicer;
     this._wishService        = wishService;
     this._signService        = signService;
     this._unitOfWorkManager  = unitOfWorkManager;
 }
Example #26
0
        protected void btnEditFavorite_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                    IUnityContainer  container       = (IUnityContainer)HttpContext.Current.Application["unityContainer"];
                    IFavoriteService favoriteService = container.Resolve <IFavoriteService>();

                    UserSession userSession = (UserSession)this.Context.Session["userSession"];
                    long        userId      = userSession.UserProfileId;

                    favoriteService.UpdateFavorite(userId, LinkId, txtName.Text, txtDescription.Text);

                    Response.Redirect(Response.ApplyAppPathModifier("~/Pages/Favorite/ListFavorites.aspx"));
                }
                catch (InstanceNotFoundException <FavoriteDetails> )
                {
                    pError.Visible = true;
                    return;
                }
            }
        }
Example #27
0
        public string Favorite(long linkId)
        {
            if (SessionManager.IsUserAuthenticated(Context))
            {
                UserSession userSession = (UserSession)this.Context.Session["userSession"];
                long        userId      = userSession.UserProfileId;

                IUnityContainer  container       = (IUnityContainer)HttpContext.Current.Application["unityContainer"];
                ILinkService     linkService     = container.Resolve <ILinkService>();
                IFavoriteService favoriteService = container.Resolve <IFavoriteService>();

                LinkDetails link = linkService.GetLink(linkId);

                string href     = " href=\"/Pages/Favorite/AddFavorite.aspx?linkId=" + linkId + "\"";
                string image    = (string)GetLocalResourceObject("lnkFavorite.ImageURL");
                string text     = (string)GetLocalResourceObject("lnkFavorite.Text");
                string disabled = "";
                if (favoriteService.HasInFavorites(userId, linkId))
                {
                    href  = " href=\"/Pages/Favorite/RemoveFavorite.aspx?linkId=" + linkId + "\"";
                    image = (string)GetLocalResourceObject("lnkUnfavorite.ImageURL");
                    text  = (string)GetLocalResourceObject("lnkUnfavorite.Text");
                }
                if (link.UserId == userId)
                {
                    href     = "";
                    disabled = " disabled=\"disabled\"";
                }

                return("<a" + href + disabled + "><img src=\"" + image + "\" alt=\"" + text + "\" /></a>");
            }
            else
            {
                return("<a href=\"/Pages/Favorite/AddFavorite.aspx?linkId=" + linkId + "\"><img src=\"" + GetLocalResourceObject("lnkFavorite.ImageURL") + "\" alt=\"" + GetLocalResourceObject("lnkFavorite.Text") + "\" /></a>");
            }
        }
Example #28
0
 public ProductController(ICategoryService categoryService,
                          ICustomerService customerService,
                          IProductService productService,
                          IProductImagesService imageService,
                          ICacheManager cacheManager,
                          IImageService mediaService,
                          IFavoriteService favoriteService,
                          IProductReviewService reviewService,
                          IBrandService brandService,
                          IProductAttributeService attributeService,
                          ISettingService settingService)
 {
     this._categoryService  = categoryService;
     this._productService   = productService;
     this._imageService     = imageService;
     this._cacheManager     = cacheManager;
     this._mediaService     = mediaService;
     this._favoriteService  = favoriteService;
     this._reviewService    = reviewService;
     this._attributeService = attributeService;
     this._settingService   = settingService;
     this._customerService  = customerService;
     this._brandService     = brandService;
 }
Example #29
0
        protected void Page_Load(object sender, EventArgs e)
        {
            LinkId = Int64.Parse(Request.Params.Get("linkId"));

            if (!IsPostBack)
            {
                try
                {
                    UserSession userSession = (UserSession)this.Context.Session["userSession"];
                    long        userId      = userSession.UserProfileId;

                    IUnityContainer  container       = (IUnityContainer)HttpContext.Current.Application["unityContainer"];
                    ILinkService     linkService     = container.Resolve <ILinkService>();
                    IFavoriteService favoriteService = container.Resolve <IFavoriteService>();

                    LinkDetails link = linkService.GetLink(LinkId);

                    lclEdit.Text             += " " + (string)GetLocalResourceObject("lblLink.Text");
                    lnkEditWhat.NavigateUrl   = Response.ApplyAppPathModifier("~/Pages/Link/Link.aspx?linkId=" + LinkId);
                    lblEditWhat.Text          = "'" + link.Name + "'";
                    imgEditWhat.ImageUrl      = (string)GetLocalResourceObject("imgLink.ImageUrl");
                    imgEditWhat.AlternateText = (string)GetLocalResourceObject("imgLink.AlternateText");

                    FavoriteDetails favorite = favoriteService.GetFavorite(userId, LinkId);

                    txtName.Text        = favorite.Name;
                    txtDescription.Text = favorite.Description;
                }
                catch (InstanceNotFoundException <FavoriteDetails> )
                {
                    pFavorite.Visible = false;
                    pError.Visible    = true;
                    return;
                }
            }
        }
Example #30
0
 public DetailViewModel(IFavoriteService favoriteService)
 {
     _favoriteService = favoriteService;
 }
Example #31
0
 public ParallaxScrollViewModel(INavigationService navigationService, IEventAggregator eventAggregator, IStoreManager storeManager, IToast toast, IFavoriteService favoriteService, ILoggerFacade logger, ILaunchTwitter twitter, ISSOClient ssoClient, IPushNotifications pushNotifications, IReminderService reminderService, IPageDialogService pageDialogService)
     : base(navigationService, eventAggregator, storeManager, toast, favoriteService, logger, twitter, ssoClient, pushNotifications, reminderService, pageDialogService)
 {
 }
Example #32
0
 public FavoriteController(IFavoriteService favoriteService, IProductService productService)
 {
     _favoriteService = favoriteService;
     _productService  = productService;
 }
 public WorkshopDetailsViewModel(INavigationService navigationService, IEventAggregator eventAggregator, IStoreManager storeManager, IToast toast, IFavoriteService favoriteService, ILoggerFacade logger, ILaunchTwitter twitter, ISSOClient ssoClient, IPushNotifications pushNotifications, IReminderService reminderService, IPageDialogService pageDialogService)
     : base(navigationService, eventAggregator, storeManager, toast, favoriteService, logger, twitter, ssoClient, pushNotifications, reminderService, pageDialogService)
 {
     EventAggregator.GetEvent <WorkshopSelectedEvent>().Subscribe(WorkshopSelected);
 }
Example #34
0
 public SimpleFilterDialog(IFavoriteService favoriteService, IStoreService storeService, ITypeService typeService)
 {
     _favoriteService = favoriteService;
     _storeService    = storeService;
     _typeService     = typeService;
 }
 public Favorites(IFavoriteService favoriteService)
 {
     _favoritesService = favoriteService;
 }
 public HistoryViewModel(IHistoryService historyService, INavigationService navigationService, IFavoriteService favoriteService)
     : base(navigationService, favoriteService)
 {
     this.historyService = historyService;
     HistoryItems = new ObservableCollection<Group<BaseEntry>>();
 }
Example #37
0
 public FavoriteController(IFavoriteService service)
 {
     _service = service;
 }
 public EventsViewModel(INavigationService navigationService, IEventAggregator eventAggregator, IStoreManager storeManager, IToast toast, IFavoriteService favoriteService, ILoggerFacade logger, ILaunchTwitter twitter, ISSOClient ssoClient, IPushNotifications pushNotifications, IReminderService reminderService, IPageDialogService pageDialogService)
     : base(navigationService, eventAggregator, storeManager, toast, favoriteService, logger, twitter, ssoClient, pushNotifications, reminderService, pageDialogService)
 {
     Title = "Events";
     if (Device.OS == TargetPlatform.Windows || Device.OS == TargetPlatform.WinPhone)
     {
         ToolBarItems.Add(new ToolbarItem
         {
             Text    = "Refresh",
             Icon    = "toolbar_refresh.png",
             Command = ForceRefreshCommand
         });
     }
 }
Example #39
0
 public FavoriteApiController(IFavoriteService favoriteService, IUriFactory uriFactory)
 {
     _favoriteService = favoriteService;
     _uriFactory      = uriFactory;
 }
 public FavoriteController(IFavoriteService favoriteService)
 {
     this.favoriteService = favoriteService;
 }
 public FavoriteViewModel(IFavoriteService favoriteService, INavigationService navigationService)
     : base(navigationService, favoriteService)
 {
     this.favoriteService = favoriteService;
     FavoriteItems = new ObservableCollection<Group<BaseEntry>>();
 }
 public FavoriteController(ILoggerWrapper <Favorite> logger, IFavoriteService service)
 {
     _logger  = logger;
     _service = service;
 }
 public FavotireController(IUserService us, IFavoriteService fs, IMovieService ms)
 {
     userService = us;
     favoriteService = fs;
     movieService = ms;
 }