コード例 #1
0
 public MyBrewsController(IUserService userService, IRecipeService recipeService, IBrewService brewService, ITemperatureAggregateService temperatureAggregateService)
 {
     UserService = userService;
     RecipeService = recipeService;
     BrewService = brewService;
     TemperatureAggregateService = temperatureAggregateService;
 }
コード例 #2
0
        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;
		}
コード例 #5
0
		/// <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;
		}
コード例 #6
0
		/// <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;
		}
コード例 #9
0
 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
ファイル: HomeController.cs プロジェクト: asiutra/CookPlan
 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;
 }
コード例 #21
0
 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;
 }
コード例 #27
0
 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
ファイル: Index.cshtml.cs プロジェクト: iBurakov33/Database
 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;
 }
コード例 #35
0
 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;
		}
コード例 #37
0
		/// <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;
 }
コード例 #40
0
 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;
 }