Example #1
0
 public RecipesService(
     IDeletableEntityRepository <Recipe> recipesRepository,
     IDeletableEntityRepository <CookingMethod> cookingMethodRepository,
     IIngredientsService ingredientsService,
     ICloudinaryService cloudinaryService,
     IUsersService usersService,
     ICategoriesService categoriesService,
     ICuisinesService cuisinesService,
     ICookingMethodsService cookingMethodsService,
     IImagesService imagesService,
     ICommentsService commentsService,
     IRatingsService ratingsService)
 {
     this.recipesRepository        = recipesRepository;
     this.cookingMethodsRepository = cookingMethodRepository;
     this.ingredientsService       = ingredientsService;
     this.cloudinaryService        = cloudinaryService;
     this.usersService             = usersService;
     this.categoriesService        = categoriesService;
     this.cuisinesService          = cuisinesService;
     this.cookingMethodsService    = cookingMethodsService;
     this.imagesService            = imagesService;
     this.commentsService          = commentsService;
     this.ratingsService           = ratingsService;
 }
Example #2
0
 public VideosController(IVideoCatalogService videoCatalog, IUserManagementService userManagement, IStatisticsService stats,
                         IRatingsService ratings, ISuggestVideos suggestions)
 {
     if (videoCatalog == null)
     {
         throw new ArgumentNullException("videoCatalog");
     }
     if (userManagement == null)
     {
         throw new ArgumentNullException("userManagement");
     }
     if (stats == null)
     {
         throw new ArgumentNullException("stats");
     }
     if (ratings == null)
     {
         throw new ArgumentNullException("ratings");
     }
     if (suggestions == null)
     {
         throw new ArgumentNullException("suggestions");
     }
     _videoCatalog   = videoCatalog;
     _userManagement = userManagement;
     _stats          = stats;
     _ratings        = ratings;
     _suggestions    = suggestions;
 }
 public RatingsApiController(
     IRatingsService ratingsService,
     UserManager <ApplicationUser> userManager)
 {
     this.ratingsService = ratingsService;
     this.userManager    = userManager;
 }
Example #4
0
        public BookController(IBooksService booksService, IRatingsService ratingsService, IMapperAdapter mapper, IUserProvider userProvider)
        {
            if (booksService == null)
            {
                throw new ArgumentNullException("booksService");
            }

            if (ratingsService == null)
            {
                throw new ArgumentNullException("ratingsService");
            }

            if (mapper == null)
            {
                throw new ArgumentNullException("mapper");
            }

            if (userProvider == null)
            {
                throw new ArgumentNullException("userProvider");
            }

            this.booksService   = booksService;
            this.ratingsService = ratingsService;
            this.mapper         = mapper;
            this.userProvider   = userProvider;
        }
        public RatingsServiceTests()
        {
            this.InitializeMapper();
            this.InitializeDatabaseAndRepositories();
            this.InitializeFields();

            this.ratingsService = new RatingsService(this.starRatingsRepository);
        }
        public RatingsServiceTests()
        {
            this.ratings = new List <Rating>();

            var ratingsRepository = new EfRepository <Rating>(this.DbContext);

            this.service = new RatingsService(ratingsRepository);

            this.InitializeRepositoriesData();
        }
 public ConspectsService(IConspectsRepository repository
                         , IUsersService usersService
                         , ICategoriesService categoriesService
                         , IRatingsService ratingsService)
 {
     _repository        = repository;
     _usersService      = usersService;
     _categoriesService = categoriesService;
     _ratingsService    = ratingsService;
 }
Example #8
0
 public HomeController(
     UserManager <ApplicationUser> userManager,
     IUserService userService,
     IRatingsService ratingsService,
     ICourseService courseService)
 {
     _userManager    = userManager;
     _userService    = userService;
     _ratingsService = ratingsService;
     _courseService  = courseService;
 }
Example #9
0
 public IndexService(
     IDeletableEntityRepository <Game> gameRepository,
     IDeletableEntityRepository <Platform> platformRepository,
     IDeletableEntityRepository <Review> reviewRepository,
     IRatingsService ratingsService)
 {
     this.gameRepository     = gameRepository;
     this.platformRepository = platformRepository;
     this.reviewRepository   = reviewRepository;
     this.ratingsService     = ratingsService;
 }
 public ReviewsService(
     IDeletableEntityRepository <Review> reviewRepository,
     IDeletableEntityRepository <Game> gameRepository,
     IRepository <Rating> ratingRepository,
     IRatingsService ratingsService)
 {
     this.reviewRepository = reviewRepository;
     this.gameRepository   = gameRepository;
     this.ratingRepository = ratingRepository;
     this.ratingsService   = ratingsService;
 }
Example #11
0
 public HomeController(
     ICompaniesService companiesService,
     ICommentsService commentsService,
     IRatingsService ratingsService,
     ISubscribesService subscribesService)
 {
     this.companiesService  = companiesService;
     this.commentsService   = commentsService;
     this.ratingsService    = ratingsService;
     this.subscribesService = subscribesService;
 }
Example #12
0
 public ProductsController(
     IProductsService productsService,
     IRatingsService ratingsService,
     IProductSizeService productSizeService,
     IMapper mapper)
 {
     this.productsService    = productsService;
     this.ratingsService     = ratingsService;
     this.productSizeService = productSizeService;
     this.mapper             = mapper;
 }
Example #13
0
 public HomeController(
     ICompaniesService companiesService,
     ICommentsService commentsService,
     IRatingsService ratingsService,
     ISubscribesService subscribesService,
     ILogger <HomeController> logger)
 {
     this.companiesService  = companiesService;
     this.commentsService   = commentsService;
     this.ratingsService    = ratingsService;
     this.subscribesService = subscribesService;
     this.logger            = logger;
 }
Example #14
0
 public CompaniesController(
     UserManager <ApplicationUser> userManager,
     ICompaniesService companiesService,
     ICategoriesService categoriesService,
     Cloudinary cloudinary,
     IRatingsService ratingsService)
 {
     this.userManager       = userManager;
     this.companiesService  = companiesService;
     this.categoriesService = categoriesService;
     this.cloudinary        = cloudinary;
     this.ratingsService    = ratingsService;
 }
Example #15
0
 public AddSampleRatingsHandler(IGetSampleData sampleDataRetriever, IRatingsService ratingsService)
 {
     if (sampleDataRetriever == null)
     {
         throw new ArgumentNullException("sampleDataRetriever");
     }
     if (ratingsService == null)
     {
         throw new ArgumentNullException("ratingsService");
     }
     _sampleDataRetriever = sampleDataRetriever;
     _ratingsService      = ratingsService;
 }
 public VideosController(IVideoCatalogService videoCatalog, IUserManagementService userManagement, IStatisticsService stats,
                         IRatingsService ratings, ISuggestVideos suggestions)
 {
     if (videoCatalog == null) throw new ArgumentNullException("videoCatalog");
     if (userManagement == null) throw new ArgumentNullException("userManagement");
     if (stats == null) throw new ArgumentNullException("stats");
     if (ratings == null) throw new ArgumentNullException("ratings");
     if (suggestions == null) throw new ArgumentNullException("suggestions");
     _videoCatalog = videoCatalog;
     _userManagement = userManagement;
     _stats = stats;
     _ratings = ratings;
     _suggestions = suggestions;
 }
 public ProductsController(
     IMapper mapper,
     IGoogleCloudStorage googleCloudStorage,
     ICategoriesService categoriesService,
     IProductsService productsService,
     IRatingsService ratingsService,
     IProductSizeService productSizeService)
 {
     this.mapper             = mapper;
     this.googleCloudStorage = googleCloudStorage;
     this.categoriesService  = categoriesService;
     this.productsService    = productsService;
     this.ratingsService     = ratingsService;
     this.productSizeService = productSizeService;
 }
Example #18
0
 public TripsController(
     ICitiesService citiesService,
     ICountriesService countryService,
     ICategoriesService categoriesService,
     ITransportService transportService,
     ITripsService tripsService,
     UserManager <ApplicationUser> userManager,
     IWebHostEnvironment environment,
     IRatingsService ratingsService)
 {
     this.citiesService     = citiesService;
     this.categoriesService = categoriesService;
     this.tripsService      = tripsService;
     this.userManager       = userManager;
     this.environment       = environment;
 }
Example #19
0
 public GamesService(
     IDeletableEntityRepository <Game> gameRepository,
     IDeletableEntityRepository <Platform> platformRepository,
     IDeletableEntityRepository <Genre> genreRepository,
     IDeletableEntityRepository <Language> languageRepository,
     IDeletableEntityRepository <Developer> developerRepository,
     IDeletableEntityRepository <GameGenre> gameGenreRepository,
     IDeletableEntityRepository <GameLanguage> gameLanguageRepository,
     IDeletableEntityRepository <GamePlatform> gamePlatformRepository,
     IRatingsService ratingsService)
 {
     this.gameRepository         = gameRepository;
     this.platformRepository     = platformRepository;
     this.genreRepository        = genreRepository;
     this.languageRepository     = languageRepository;
     this.developerRepository    = developerRepository;
     this.gameGenreRepository    = gameGenreRepository;
     this.gameLanguageRepository = gameLanguageRepository;
     this.gamePlatformRepository = gamePlatformRepository;
     this.ratingsService         = ratingsService;
 }
Example #20
0
 public ReviewsService(IRatingsService ratings, IFeatureManager featureManager, ILogger <ReviewsService> logger)
 {
     _ratings        = ratings;
     _featureManager = featureManager;
     _logger         = logger;
 }
 public CategoriesController(ICategoriesService categoriesService, IProjectsService projectsService, IRatingsService ratingsService)
 {
     this.categoriesService = categoriesService;
     this.projectsService   = projectsService;
     this.ratingsService    = ratingsService;
 }
Example #22
0
 public RatingsController(IRatingsService ratings)
 {
     this.ratings = ratings;
 }
 public ProfilesController(IProfilesService profilesService, IRatingsService ratingsService, IDeletableEntityRepository <ApplicationUser> userRepository)
 {
     this.profilesService = profilesService;
     this.ratingsService  = ratingsService;
     this.userRepository  = userRepository;
 }
 public RatingsController(IRatingsService ratingsService, IAuthenticationService <int> authService
                          , ILogger <RatingsController> logger) : base(logger)
 {
     _ratingsService = ratingsService;
     _authService    = authService;
 }
 public StoriesController(IStoriesService storyService, IRatingsService ratingsService)
 {
     this.storyService   = storyService;
     this.ratingsService = ratingsService;
 }
Example #26
0
 public RatingsController(IRatingsService ratingsService, IFilmsService FilmsService)
 {
     _ratingsService = ratingsService;
     _FilmsService   = FilmsService;
 }
Example #27
0
 public ArticlesController(IArticlesService articlesService, IRatingsService ratingsService, IMapper mapper)
 {
     this.articlesService = articlesService;
     this.ratingsService  = ratingsService;
     this.mapper          = mapper;
 }
 public RatingsController(IRatingsService service)
 {
     _service = service;
 }
Example #29
0
 public RatingsController(IRatingsService ratingsService)
 {
     this.ratingsService = ratingsService;
 }
 public RatingsController(IRatingsService ratingService)
 {
     _ratingService = ratingService;
 }
 public RestaurantsController(IRestaurantsService restaurantsService, IRatingsService ratingsService)
 {
     this.restaurantsService = restaurantsService;
     this.ratingsService     = ratingsService;
 }
Example #32
0
 public RatingsController(IRatingsService ratingsService)
 {
     this.ratingsService = ratingsService;
 }
 public DeanController(IUserService userService, IRatingsService ratingsService, ICourseService courseService)
 {
     _userService    = userService;
     _ratingsService = ratingsService;
     _courseService  = courseService;
 }