Пример #1
0
 public MyBrewsController(IUserService userService, IRecipeService recipeService, IBrewService brewService, ITemperatureAggregateService temperatureAggregateService)
 {
     UserService = userService;
     RecipeService = recipeService;
     BrewService = brewService;
     TemperatureAggregateService = temperatureAggregateService;
 }
        public WeeklyRecipeViewModel(
            BackgroundImageRotator backgroundImageRotator, 
            IRecipeService recipeService, 
            RecipeMapper recipeMapper, 
            WeeklyThaiRecipeSettings weeklyThaiRecipeSettings, 
            IPushRegistrationService pushRegistrationService)
        {
            this.backgroundImageRotator = backgroundImageRotator;
            this.weeklyThaiRecipeSettings = weeklyThaiRecipeSettings;
            this.pushRegistrationService = pushRegistrationService;
            BusyIndicatorIsVisible = true;

            Messenger.Default.Register<List<Recipe>>(
                this,
                message =>
                    {
                        Recipes = new ObservableCollection<RecipeViewModel>(recipeMapper.Map(message));
                        Recipes[0].IsFirst = true;
                        this.CurrentRecipe = Recipes[0];
                        BusyIndicatorIsVisible = false;
                    });

            RotatePanoramaBackground();
            this.InitializeAndStartTimer();
            recipeService.StartGetAllRecipes();

            this.SubmitReviewCommand = new RelayCommand(SubmitReview);
            this.MoreAppsCommand = new RelayCommand(this.MoreApps);
        }
Пример #3
0
 public RecipeServiceTests()
 {
     this.service = new RecipeService();
     service.Add(new Recipe { Name = "Pie" }
         );
     service.Add(new Recipe { Name = "Cake" }
         );
 }
Пример #4
0
		/// <summary>
		/// ctor the Mighty
		/// </summary>
        public UserController(IUnitOfWorkFactory<BrewgrContext> unitOfWorkFactory, IUserService userService, IUserResolver userResolver, 
			IRecipeService recipeService, INotificationService notificationService)
		{
			this.UnitOfWorkFactory = unitOfWorkFactory;
			this.UserService = userService;
			this.UserResolver = userResolver;
            this.RecipeService = recipeService;
			this.NotificationService = notificationService;
		}
		/// <summary>
		/// ctor the Mighty
		/// </summary>
        public BrewSessionCommentNotification(INotificationService notificationService, IRecipeService recipeService, IUserService userService, IEmailSender emailSender, 
			IWebSettings webSettings, BrewgrUrlBuilder recipeUrlBuilder)
		{
			this.NotificationService = notificationService;
			this.RecipeService = recipeService;
			this.UserService = userService;
			this.EmailSender = emailSender;
			this.WebSettings = webSettings;
			this.RecipeUrlBuilder = recipeUrlBuilder;
		}
		/// <summary>
		/// ctor the Mighty
		/// </summary>
		public SendToShopController(IUnitOfWorkFactory<BrewgrContext> unitOfWorkFactory, IPartnerIdResolver partnerIdResolver, IPartnerService partnerService, 
			IRecipeService recipeService, ISendToShopService sendToShopService, IStringCryptoService stringCryptoService)
		{
			this.UnitOfWorkFactory = unitOfWorkFactory;
			this.PartnerIdResolver = partnerIdResolver;
			this.PartnerService = partnerService;
			this.RecipeService = recipeService;
			this.SendToShopService = sendToShopService;
			this.StringCryptoService = stringCryptoService;
		}
Пример #7
0
		/// <summary>
		/// ctor the Mighty
		/// </summary>
		public RecipeController(IUnitOfWorkFactory<BrewgrContext> unitOfWorkFactory, IRecipeService recipeService, IBeerStyleService beerStyleService, 
			IStaticContentService staticContentService, IUserService userService, INotificationService notificationService, IPartnerIdResolver partnerIdResolver,
			IBeerXmlRecipeExporter beerXmlExporter, IBeerXmlRecipeImporter beerXmlImporter, IPartnerService partnerService, ISendToShopService sendToShopService)
		{
			this.UnitOfWorkFactory = unitOfWorkFactory;
			this.RecipeService = recipeService;
			this.BeerStyleService = beerStyleService;
			this.StaticContentService = staticContentService;
            this.UserService = userService;
			this.NotificationService = notificationService;
			this.PartnerIdResolver = partnerIdResolver;
			this.BeerXmlExporter = beerXmlExporter;
			this.BeerXmlImporter = beerXmlImporter;
			this.PartnerService = partnerService;
			this.SendToShopService = sendToShopService;
		}
Пример #8
0
		/// <summary>
		/// ctor the Mighty
		/// </summary>
		public RootController(IUnitOfWorkFactory<BrewgrContext> unitOfWorkFactory, IUserLoginService userLoginService, 
			IAuthenticationService authService, IUserResolver userResolver, IOAuthService oAuthService, IUserService userService,
			ISearchService searchService, IFacebookConnectSettings facebookConnectSettings, IMarketingService marketingService,
			IRecipeService recipeService, IEmailMessageFactory emailMessageFactory, IEmailSender emailSender, ISeoSitemap seoSitemap)
		{
			this.UnitOfWorkFactory = unitOfWorkFactory;
			this.UserLoginService = userLoginService;
			this.AuthService = authService;
			this.UserResolver = userResolver;
			this.OAuthService = oAuthService;
			this.UserService = userService;
			this.SearchService = searchService;
			this.FacebookConnectSettings = facebookConnectSettings;
			this.MarketingService = marketingService;
			this.RecipeService = recipeService;
			this.EmailMessageFactory = emailMessageFactory;
			this.EmailSender = emailSender;
			this.SeoSitemap = seoSitemap;
		}
 public void Setup()
 {
     this.context       = MockDbContext.GetContext();
     this.recipeService = new RecipeService(this.context);
 }
Пример #10
0
 public HomeController(ADProjContext context, IRecipeService recipeService, IGroupService groupService)
 {
     _context       = context;
     _recipeService = recipeService;
     _groupService  = groupService;
 }
Пример #11
0
 public SearchRecipesTests()
 {
     _sut = new RecipeService(_recipeRepository.Object, _userRepository.Object, new IngredientServices(_ingredientRepository.Object));
 }
Пример #12
0
 public RecipeAppService(IRecipeService serviceBase) : base(serviceBase)
 {
     _service = serviceBase;
 }
Пример #13
0
 public RecipeController(IRecipeService recipe, IStepService stepService)
 {
     _recipeService = recipe;
     _stepservice   = stepService;
 }
Пример #14
0
 public ShoppingListService(IUnitOfWork unitOfWork, IRecipeService iRecipeService)
 {
     _unitOfWork = unitOfWork;
     _iRecipeService = iRecipeService;
 }
Пример #15
0
 public HomeController(IRecipeService recipeService)
 {
     _recipeService = recipeService;
 }
Пример #16
0
 public GoogleTaskListsController(IGoogleTasksService taskService, IRecipeService recipeService)
 {
     GoogleTasksService = taskService;
     RecipesService     = recipeService;
 }
Пример #17
0
 public TagController(IRecipeService recipeService)
 {
     _recipeService = recipeService;
 }
Пример #18
0
 public CookBookController()
 {
     _recipeService = new RecipeService();
 }
Пример #19
0
 public CookBookController(IRecipeService recipeService)
 {
     _recipeService = recipeService;
 }
Пример #20
0
 public RecipesController(IRecipeService recipeService, ICategoryService categoryService, IComplexityService complexityService)
 {
     _recipeService     = recipeService;
     _categoryService   = categoryService;
     _complexityService = complexityService;
 }
 public MainPageViewModel(INavigationService navigationService, IRecipeService recipeService) : base(navigationService)
 {
     Title          = "Contoso Cookbook";
     _recipeService = recipeService;
 }
Пример #22
0
 public GenerateTag(IRecipeService recipeService, ADProjContext context)
 {
     _recipesService = recipeService;
     _context        = context;
 }
Пример #23
0
 public MyRecipesController(IUserService userService, IRecipeService recipeService)
 {
     UserService = userService;
     RecipeService = recipeService;
 }
Пример #24
0
 public RecipeCatalogController(IRecipeService service, UserInformation userInformation)
 {
     this.service         = service;
     this.userInformation = userInformation;
 }
Пример #25
0
 public FavoriteController(IUnitOfWork unitOfWork, IRecipeService recipeService)
 {
     _unitOfWork = unitOfWork;
     _recipeService = recipeService;
 }
Пример #26
0
 public DashboardController(IPlanService planService, UserManager <User> userManager, IRecipeService recipeService, IDayNameService dayNameService)
 {
     _userManager    = userManager;
     _planService    = planService;
     _recipeService  = recipeService;
     _dayNameService = dayNameService;
 }
 public PdfGeneratorController(IPdfGeneratorService pdfGeneratorService, IRecipeService service, IStepService step)
 {
     _pdfGeneratorService = pdfGeneratorService;
     _recipeSevice        = service;
     _stepService         = step;
 }
Пример #28
0
 public CreateModel(IRecipeService recipeService, ICategoryService categoryService, ILogger <RecipeService> logger)
     : base(recipeService, categoryService, logger)
 {
     BuildCategories().GetAwaiter().GetResult();
 }
Пример #29
0
 public RecipesController(IRecipeService recipeService)
 {
     _recipeService = recipeService;
 }
Пример #30
0
 public IndexModel(IRecipeService db, ITypesService dbT, IUserService dbU)
 {
     _service      = db;
     _typesService = dbT;
     _userService  = dbU;
 }
Пример #31
0
 public FavoriteController(IRecipeService recipeService)
 {
     _recipeService = recipeService;
 }
Пример #32
0
 /// <summary>
 /// ctor the Mighty
 /// </summary>
 public BrewSessionController(IUnitOfWorkFactory <BrewgrContext> unitOfWorkFactory, IRecipeService recipeService, IUserService userService)
 {
     this.UnitOfWorkFactory = unitOfWorkFactory;
     this.RecipeService     = recipeService;
     this.UserService       = userService;
 }
Пример #33
0
 public NotFoundFilter(IRecipeService recipeService)
 {
     _recipeService = recipeService;
 }
Пример #34
0
 public RecipeController(IRecipeService service)
 {
     _service = service;
 }
 public PhotoController(IRecipeService recipeService)
 {
     this.recipeService = recipeService;
 }
Пример #36
0
		/// <summary>
		/// ctor the Mighty
		/// </summary>
        public DashboardController(IUserService userService, IRecipeService recipeService)
		{
			this.UserService = userService;
			this.RecipeService = recipeService;
		}
		/// <summary>
		/// ctor the Mighty
		/// </summary>
		public BrewSessionController(IUnitOfWorkFactory<BrewgrContext> unitOfWorkFactory, IRecipeService recipeService, IUserService userService)
		{
			this.UnitOfWorkFactory = unitOfWorkFactory;
			this.RecipeService = recipeService;
			this.UserService = userService;
		}
Пример #38
0
 public Handler(IRecipeService recipeService, IRecipeRepository recipeRepository)
 {
     _recipeService    = recipeService;
     _recipeRepository = recipeRepository;
 }
Пример #39
0
 public HomeController(IRecipeService recipeService)
 {
     _recipeService = recipeService;
 }
 public RecipeController(IRecipeService recipeService)
 {
     RecipeService = recipeService;
 }
Пример #41
0
 public IndexModel(IRecipeService recipeService)
 {
     this.recipeService = recipeService;
 }
Пример #42
0
 public RecipesController(IAuthService authClient, IRecipeService recipeClient)
 {
     _authClient   = authClient;
     _recipeClient = recipeClient;
 }
Пример #43
0
 public HomeController(IRecipeService recipeService, IMeasureService measureService)
 {
     this.recipeService  = recipeService;
     this.measureService = measureService;
 }
Пример #44
0
 /// <summary>
 /// ctor the Mighty
 /// </summary>
 public BrewgrSeoSitemap(IRecipeService recipeService, IBeerStyleService beerStyleService, IUserService userService)
 {
     this.RecipeService    = recipeService;
     this.BeerStyleService = beerStyleService;
     this.UserService      = userService;
 }
Пример #45
0
		/// <summary>
		/// ctor the Mighty
		/// </summary>
		public BrewgrSeoSitemap(IRecipeService recipeService, IBeerStyleService beerStyleService, IUserService userService)
		{
			this.RecipeService = recipeService;
			this.BeerStyleService = beerStyleService;
			this.UserService = userService;
		}
Пример #46
0
 public RecipesController(ADProjContext context, IRecipeService recipeService)
 {
     _context        = context;
     _recipesService = recipeService;
 }