Пример #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;
 }
Пример #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;
 }
Пример #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);
        }
Пример #6
0
        public RatingsServiceTests()
        {
            this.ratings = new List <Rating>();

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

            this.service = new RatingsService(ratingsRepository);

            this.InitializeRepositoriesData();
        }
Пример #7
0
 public ConspectsService(IConspectsRepository repository
                         , IUsersService usersService
                         , ICategoriesService categoriesService
                         , IRatingsService ratingsService)
 {
     _repository        = repository;
     _usersService      = usersService;
     _categoriesService = categoriesService;
     _ratingsService    = ratingsService;
 }
Пример #8
0
 public HomeController(
     UserManager <ApplicationUser> userManager,
     IUserService userService,
     IRatingsService ratingsService,
     ICourseService courseService)
 {
     _userManager    = userManager;
     _userService    = userService;
     _ratingsService = ratingsService;
     _courseService  = courseService;
 }
Пример #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;
 }
Пример #11
0
 public HomeController(
     ICompaniesService companiesService,
     ICommentsService commentsService,
     IRatingsService ratingsService,
     ISubscribesService subscribesService)
 {
     this.companiesService  = companiesService;
     this.commentsService   = commentsService;
     this.ratingsService    = ratingsService;
     this.subscribesService = subscribesService;
 }
Пример #12
0
 public ProductsController(
     IProductsService productsService,
     IRatingsService ratingsService,
     IProductSizeService productSizeService,
     IMapper mapper)
 {
     this.productsService    = productsService;
     this.ratingsService     = ratingsService;
     this.productSizeService = productSizeService;
     this.mapper             = mapper;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #24
0
 public RatingsController(IRatingsService ratingsService, IAuthenticationService <int> authService
                          , ILogger <RatingsController> logger) : base(logger)
 {
     _ratingsService = ratingsService;
     _authService    = authService;
 }
Пример #25
0
 public StoriesController(IStoriesService storyService, IRatingsService ratingsService)
 {
     this.storyService   = storyService;
     this.ratingsService = ratingsService;
 }
Пример #26
0
 public RatingsController(IRatingsService ratingsService, IFilmsService FilmsService)
 {
     _ratingsService = ratingsService;
     _FilmsService   = FilmsService;
 }
Пример #27
0
 public ArticlesController(IArticlesService articlesService, IRatingsService ratingsService, IMapper mapper)
 {
     this.articlesService = articlesService;
     this.ratingsService  = ratingsService;
     this.mapper          = mapper;
 }
Пример #28
0
 public RatingsController(IRatingsService service)
 {
     _service = service;
 }
Пример #29
0
 public RatingsController(IRatingsService ratingsService)
 {
     this.ratingsService = ratingsService;
 }
Пример #30
0
 public RatingsController(IRatingsService ratingService)
 {
     _ratingService = ratingService;
 }
Пример #31
0
 public RestaurantsController(IRestaurantsService restaurantsService, IRatingsService ratingsService)
 {
     this.restaurantsService = restaurantsService;
     this.ratingsService     = ratingsService;
 }
Пример #32
0
 public RatingsController(IRatingsService ratingsService)
 {
     this.ratingsService = ratingsService;
 }
 public DeanController(IUserService userService, IRatingsService ratingsService, ICourseService courseService)
 {
     _userService    = userService;
     _ratingsService = ratingsService;
     _courseService  = courseService;
 }