public InsanelySimpleBlogCategoryController(
            ICategoriesService categoriesService)
        {
            Condition.Requires(categoriesService, "categoriesService").IsNotNull();

            _categoriesService = categoriesService;
        }
 public ProductsController(IRepository<Product> productRepository, IProductsService productsService, ICategoriesService categoriesService, IMaterialsService materialsService)
 {
     this.productRepository = productRepository;
     this.productsService = productsService;
     this.categoriesService = categoriesService;
     this.materialsService = materialsService;
 }
Exemplo n.º 3
0
 public CategoryController(
     IService<Category> categoriesService,
     ICategoriesService categories)
 {
     this.categoriesService = categoriesService;
     this.categories = categories;
 }
Exemplo n.º 4
0
 public HomeController(
     IJokesService jokes,
     ICategoriesService jokeCategories)
 {
     this.jokes = jokes;
     this.jokeCategories = jokeCategories;
 }
Exemplo n.º 5
0
 public CategoriesController(
     ICategoriesService categories,
     IProductService products)
 {
     this.categories = categories;
     this.products = products;
 }
 public CategoriesController(
     ICacheService cacheService,
     ICategoriesService categoriesService)
 {
     this.categoriesService = categoriesService;
     this.Cache = cacheService;
 }
Exemplo n.º 7
0
 public HomeController(
     IPostsService posts,
     ICategoriesService postCategories)
 {
     this.posts = posts;
     this.postCategories = postCategories;
 }
        public void Init()
        {
            // this.userRepo = TestObjectFactory.GetUsersRepository();
            this.categoriesRepo = TestObjectFactory.GetCategoriesRepository();

            this.categoriesService = new CategoriesService(this.categoriesRepo);
        }
Exemplo n.º 9
0
 public PostsController(IPostsService posts, ICategoriesService postCategory, ICommentsService postComments, IPointsService postPoints)
 {
     this.posts = posts;
     this.postCategory = postCategory;
     this.postComments = postComments;
     this.postPoints = postPoints;
 }
Exemplo n.º 10
0
 public HomeController(
     IArticlesService articles,
     ICategoriesService categories)
 {
     this.articles = articles;
     this.categories = categories;
 }
 public ManageCategoriesController(IPostsService posts, IAnswersService answers, ICommentsService comments, ICategoriesService categories)
 {
     this.posts = posts;
     this.answers = answers;
     this.comments = comments;
     this.categories = categories;
 }
 public AdvertisementsAdministrationController(IAdvertisementsService advertisements, ICategoriesService categories, ITownsService towns, ICommentsService comments)
 {
     this.advertisements = advertisements;
     this.categories = categories;
     this.towns = towns;
     this.comments = comments;
 }
 public CreateOrderController(ICategoriesService categories, IOrderService orders, ICustomerService customers, IUnitService units, IPublicCodeProvider coder)
 {
     this.categoriesService = categories;
     this.orderService = orders;
     this.customerService = customers;
     this.unitService = units;
     this.coder = coder;
 }
 public PostsController(IPostsService posts, IAnswersService answers, ICategoriesService categories, ITagsService tags, ICommentsService comments)
 {
     this.posts = posts;
     this.answers = answers;
     this.categories = categories;
     this.tags = tags;
     this.comments = comments;
 }
Exemplo n.º 15
0
 public HomeController(
     IQuizzesGeneralService quizzes,
     ICategoriesService quizCategories,
     IQuizzesRankingService ranking)
     : base(ranking)
 {
     this.quizzes = quizzes;
     this.quizCategories = quizCategories;
 }
Exemplo n.º 16
0
 public QuizzesController(
     IQuizzesGeneralService quizzes,
     ICategoriesService categories,
     IQuizzesEvalService quizzesEvalService)
 {
     this.quizzes = quizzes;
     this.categories = categories;
     this.quizzesEvalService = quizzesEvalService;
 }
 public HomeController(
     IProductsService productsService, 
     ICacheService cacheService,
     ICategoriesService categoriesService)
 {
     this.productsService = productsService;
     this.categoriesService = categoriesService;
     this.Cache = cacheService;
 }
 public KendoManufacturersController(
    ICategoriesService categoriesService,
     IProductService productsService,
     IManufacturerService manufacturerService)
 {
     this.categoriesService = categoriesService;
     this.productsService = productsService;
     this.manufacturerService = manufacturerService;
 }
        public InsanelySimpleBlogSidebarController(
            ICategoriesService categoriesService,
            IIndexService indexService)
        {
            Condition.Requires(categoriesService, "categoriesService").IsNotNull();
            Condition.Requires(indexService, "indexService").IsNotNull();

            _categoriesService = categoriesService;
            _indexService = indexService;
        }
 public UploadApplicationController(IApplicationsService applications,
     ICategoriesService categories,
     IUsersService users,
     IImageService images)
 {
     this.applications = applications;
     this.categories = categories;
     this.users = users;
     this.images = images;
 }
Exemplo n.º 21
0
 public DefaultRootApiOperations(ITagsService tags, ITagService tag, IVersionService version, ILayoutsService layouts, ILayoutService layout,
     ICategoriesService categories, ICategoryService category)
 {
     Tags = tags;
     Tag = tag;
     Categories = categories;
     Category = category;
     Version = version;
     Layouts = layouts;
     Layout = layout;
 }
Exemplo n.º 22
0
 public AdsController(
     ICategoriesService categories,
     IAdvertisementsService advertisements,
     ITownsService towns,
     IImagesService images,
     UserManager<ApplicationUser> manager)
 {
     this.categories = categories;
     this.advertisements = advertisements;
     this.towns = towns;
     this.images = images;
     this.manager = manager;
 }
Exemplo n.º 23
0
 public ClassWrapper(IUsersService usersService, IProjectsService projectsService, ITasksService tasksService, IRolesService rolesService, 
     ICategoriesService categoriesService, IStatusesService statusesService, IPrioritiesService prioritiesService, ITypesService typesService,
     ISlotsService slotsService)
 {
     _usersService = usersService;
     _projectsService = projectsService;
     _tasksService = tasksService;
     _rolesService = rolesService;
     _categoriesService = categoriesService;
     _statusesService = statusesService;
     _prioritiesService = prioritiesService;
     _typesService = typesService;
     _slotsService = slotsService;
 }
Exemplo n.º 24
0
 public ClassWrapper()
 {
     _usersService = new UsersService();
     _projectsService = new ProjectsService();
     _tasksService = new TasksService();
     _membershipsService = new MembershipsService();
     _userMembershipsService = new UserMembershipsService();
     _rolesService = new RolesService();
     _usersRolesService = new UsersRolesService();
     _categoriesService = new CategoriesService();
     _statusesService = new StatusesService();
     _prioritiesService = new PrioritiesService();
     _typesService = new TypesService();
     _slotsService = new SlotsService();
 }
        //private ISearchRefinementHelpers<ProductOfCategoryViewModel, SearchFilterForCategoryViewModel> searchAlgorithms;

        public SearchController(
            ICacheService cacheService,
            IProductsService productsService,
            ISearchFiltersService searchFiltersService,
            ICategoriesService categoriesService,
            ISearchFilterHelpers filterStringHelpers
            //ISearchRefinementHelpers<ProductOfCategoryViewModel, SearchFilterForCategoryViewModel> searchAlgorithms
            )
        {
            this.Cache = cacheService;
            this.productsService = productsService;
            this.searchFiltersService = searchFiltersService;
            this.categoriesService = categoriesService;
            this.filterStringHelpers = filterStringHelpers;
            //this.searchAlgorithms = searchAlgorithms;
        }
Exemplo n.º 26
0
 public WcfService(
     IUsersService usersService,
     IRolesService rolesService,
     ICategoriesService categoriesService,
     IPrioritiesService prioritiesService,
     ITypesService typesService,
     IUsersRolesService usersRolesService,
     IStatusesService statusesService)
 {
     _usersService = usersService;
     _rolesService = rolesService;
     _categoriesService = categoriesService;
     _prioritiesService = prioritiesService;
     _typesService = typesService;
     _usersRolesService = usersRolesService;
     _statusesService = statusesService;
 }
        public void Initialize()
        {
            var categoriesRepository = new Mock<ICategoriesRepository>();
            var categories = new List<Category>
            {
                new Category {Id = 1, Name = "Category1"},
                new Category {Id = 2, Name = "Category2", ParentId = 1},
                new Category {Id = 3, Name = "Category3", ParentId = 2},
                new Category {Id = 4, Name = "Category4", ParentId = 1},
                new Category {Id = 5, Name = "Category5"}
            };

            categoriesRepository.Setup(r => r.Get()).ReturnsAsync(categories);
            categoriesRepository.Setup(r => r.Get(It.IsAny<int>())).Returns((int id) => Task.FromResult(categories.FirstOrDefault(c => c.Id == id)));
            categoriesRepository.Setup(r => r.Create(It.IsAny<Category>())).ReturnsAsync(true);
            categoriesRepository.Setup(r => r.Update(It.IsAny<Category>())).ReturnsAsync(true);
            categoriesRepository.Setup(r => r.GetChildren(It.IsAny<int>())).Returns(
                (int id) => Task.FromResult(categories.Where(c => c.ParentId == id).ToList() as IEnumerable<Category>));
            categoriesRepository.Setup(r => r.GetRoot()).ReturnsAsync(categories.Where(c => c.ParentId == null).ToList());
            categoriesRepository.Setup(r => r.Delete(It.IsAny<int>())).Returns((int id) => Task.FromResult(categories.RemoveAll(c => c.Id == id) > 0));

            _categoriesService = new CategoriesService(categoriesRepository.Object);
        }
Exemplo n.º 28
0
 public CategoriesController(ILogger <CategoriesController> logger, ICategoriesService categoriesService, ICacheProvider cacheProvider)
 {
     _logger            = logger;
     _categoriesService = categoriesService;
     _cacheProvider     = cacheProvider;
 }
Exemplo n.º 29
0
 public ProductsController(IProductsService productsService, ILogger <BasketController> logger, ICategoriesService categoryService, IWebHostEnvironment environment)
 {
     _productsService   = productsService;
     _categoriesService = categoryService;
     _environment       = environment;
     _logger            = logger;
 }
Exemplo n.º 30
0
 public HomeController(IQuestionsService qs,ICategoriesService cs)
 {
     this.qs = qs;
     this.cs = cs;
 }
Exemplo n.º 31
0
 public NavBarViewComponent(ICategoriesService service)
 {
     this.service = service;
 }
 public ManageCategoriesController(IPostsService posts, IAnswersService answers, ICommentsService comments, ICategoriesService categories)
 {
     m_Posts      = posts;
     m_Answers    = answers;
     m_Comments   = comments;
     m_Categories = categories;
 }
Exemplo n.º 33
0
        public CategoryController(ICategoriesService categoryService)
        {
            Guard.WhenArgument(categoryService, "categoryService").IsNull().Throw();

            this.categoryService = categoryService;
        }
Exemplo n.º 34
0
 public QuestionsController(IQuestionsService qs, IAnswersService asr, ICategoriesService cs)
 {
     this.qs  = qs;
     this.asr = asr;
     this.cs  = cs;
 }
Exemplo n.º 35
0
 public CartController(IProductsService productsService, IOrderDetailsService orderDetailsService, IOrdersService ordersService, ICartService cartService, ICategoriesService categoriesService)
 {
     _productsService     = productsService;
     _ordersService       = ordersService;
     _cartService         = cartService;
     _categoriesService   = categoriesService;
     _orderDetailsService = orderDetailsService;
 }
Exemplo n.º 36
0
 public CategoriesController(ICategoriesService category)
 {
     this.categoriesContext = category;
 }
Exemplo n.º 37
0
 public HomeService(ICategoriesService categoriesService, IAdsService adsService)
 {
     this.categoriesService = categoriesService;
     this.adsService        = adsService;
 }
Exemplo n.º 38
0
 public OfferController(IUnitOfWork db, IOffersService offerService, IUsersService userService, ICategoriesService categoryService)
 {
     this.db              = db;
     this.offerService    = offerService;
     this.userService     = userService;
     this.categoryService = categoryService;
 }
Exemplo n.º 39
0
 public HomeController(IBooksService booksService, ICategoriesService categoriesService)
 {
     this.booksService      = booksService;
     this.categoriesService = categoriesService;
 }
 public AnnouncementsController(IAnnouncementService announcementService, UserManager <ApplicationUser> userManager, ICategoriesService categoriesService, ICommentService commentService)
 {
     this.announcementService = announcementService;
     this.userManager         = userManager;
     this.categoriesService   = categoriesService;
     this.commentService      = commentService;
 }
Exemplo n.º 41
0
 public CategoriesController(ICategoriesService categories)
 {
     this.categories = categories;
 }
 public ArticlesController(IArticlesService articlesService, ICategoriesService categoriesService)
 {
     this.articlesService   = articlesService;
     this.categoriesService = categoriesService;
 }
Exemplo n.º 43
0
 public PostsController(ICategoriesService categoriesService, IPostsService postsService, UserManager <ApplicationUser> userManager)
 {
     this.categoriesService = categoriesService;
     this.postsService      = postsService;
     this.userManager       = userManager;
 }
 public HomeController(IPostsService postsService, IBlogsService blogsService, ICategoriesService categoriesService)
 {
     this.postsService      = postsService;
     this.blogsService      = blogsService;
     this.categoriesService = categoriesService;
 }
Exemplo n.º 45
0
 public DoctorsController(IDoctorsService doctorsService, ICategoriesService categoriesService)
 {
     this.doctorsService    = doctorsService;
     this.categoriesService = categoriesService;
 }
 public CategoriesController(ICategoriesService categoriesService)
 {
     this.categories = categoriesService;
 }
Exemplo n.º 47
0
 public CategoriesController(ICategoriesService categoriesService, IGetCountsService getCountsService)
 {
     this.categoriesService = categoriesService;
     this.getCountsService  = getCountsService;
 }
Exemplo n.º 48
0
 public CategoriesController(ICategoriesService service)
 {
     _service = service;
 }
 public CategoriesController(ICategoriesService categoriesService)
 {
     _categoriesService = categoriesService;
 }
 public ProductController(DataAccess.Repositories.IAuctionProvider auction, IProductService productService, ICategoriesService categoryService)
 {
     _auctionProvider = auction;
     _productService  = productService;
     _categoryService = categoryService;
 }
Exemplo n.º 51
0
 public CategoryController(ICategoriesService categories)
 {
     this.categories = categories;
 }
        public CategoriesController(ICategoriesService categories)
        {
            Guard.WhenArgument(categories, "categories").IsNull().Throw();

            this.categories = categories;
        }
Exemplo n.º 53
0
 public CoursesController(ICoursesService coursesService, ICategoriesService categoriesService, ILoggerService logger)
     : base(logger)
 {
     this.coursesService    = coursesService;
     this.categoriesService = categoriesService;
 }
Exemplo n.º 54
0
 public SubCategoriesService(IGenericRepository repo, ICategoriesService catService)
 {
     _repo       = repo;
     _catService = catService;
 }
 public PagingCategoryController(ICategoriesService categories)
 {
     this.categories = categories;
 }
 public AddEventController(IEventsService events, ICategoriesService categories)
 {
     this.events     = events;
     this.categories = categories;
 }
 public CategoriesAdministrationController(ICategoriesService categories, ICommentsService comments, IAdvertisementsService advertisements)
 {
     this.categories = categories;
     this.comments = comments;
     this.advertisements = advertisements;
 }
 public YearExpensesCalculator(IExpensesService expensesSvc, ICategoriesService categoriesSvc, IGroupsService groupsSvc)
 {
     _expensesSvc   = expensesSvc;
     _categoriesSvc = categoriesSvc;
     _groupsSvc     = groupsSvc;
 }
Exemplo n.º 59
0
 public CategoryController(ICategoriesService categoriesService, IProductsService productsService)
 {
     this.categoriesService = categoriesService;
 }
Exemplo n.º 60
0
 public TripsController(ITripsService tripsService, ICitiesService citiesService, ICategoriesService categoriesService)
 {
     this.tripsService      = tripsService;
     this.citiesService     = citiesService;
     this.categoriesService = categoriesService;
 }