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; }
public CategoryController( IService<Category> categoriesService, ICategoriesService categories) { this.categoriesService = categoriesService; this.categories = categories; }
public HomeController( IJokesService jokes, ICategoriesService jokeCategories) { this.jokes = jokes; this.jokeCategories = jokeCategories; }
public CategoriesController( ICategoriesService categories, IProductService products) { this.categories = categories; this.products = products; }
public CategoriesController( ICacheService cacheService, ICategoriesService categoriesService) { this.categoriesService = categoriesService; this.Cache = cacheService; }
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); }
public PostsController(IPostsService posts, ICategoriesService postCategory, ICommentsService postComments, IPointsService postPoints) { this.posts = posts; this.postCategory = postCategory; this.postComments = postComments; this.postPoints = postPoints; }
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; }
public HomeController( IQuizzesGeneralService quizzes, ICategoriesService quizCategories, IQuizzesRankingService ranking) : base(ranking) { this.quizzes = quizzes; this.quizCategories = quizCategories; }
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; }
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; }
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; }
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; }
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; }
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); }
public CategoriesController(ILogger <CategoriesController> logger, ICategoriesService categoriesService, ICacheProvider cacheProvider) { _logger = logger; _categoriesService = categoriesService; _cacheProvider = cacheProvider; }
public ProductsController(IProductsService productsService, ILogger <BasketController> logger, ICategoriesService categoryService, IWebHostEnvironment environment) { _productsService = productsService; _categoriesService = categoryService; _environment = environment; _logger = logger; }
public HomeController(IQuestionsService qs,ICategoriesService cs) { this.qs = qs; this.cs = cs; }
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; }
public CategoryController(ICategoriesService categoryService) { Guard.WhenArgument(categoryService, "categoryService").IsNull().Throw(); this.categoryService = categoryService; }
public QuestionsController(IQuestionsService qs, IAnswersService asr, ICategoriesService cs) { this.qs = qs; this.asr = asr; this.cs = cs; }
public CartController(IProductsService productsService, IOrderDetailsService orderDetailsService, IOrdersService ordersService, ICartService cartService, ICategoriesService categoriesService) { _productsService = productsService; _ordersService = ordersService; _cartService = cartService; _categoriesService = categoriesService; _orderDetailsService = orderDetailsService; }
public CategoriesController(ICategoriesService category) { this.categoriesContext = category; }
public HomeService(ICategoriesService categoriesService, IAdsService adsService) { this.categoriesService = categoriesService; this.adsService = adsService; }
public OfferController(IUnitOfWork db, IOffersService offerService, IUsersService userService, ICategoriesService categoryService) { this.db = db; this.offerService = offerService; this.userService = userService; this.categoryService = categoryService; }
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; }
public CategoriesController(ICategoriesService categories) { this.categories = categories; }
public ArticlesController(IArticlesService articlesService, ICategoriesService categoriesService) { this.articlesService = articlesService; this.categoriesService = categoriesService; }
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; }
public DoctorsController(IDoctorsService doctorsService, ICategoriesService categoriesService) { this.doctorsService = doctorsService; this.categoriesService = categoriesService; }
public CategoriesController(ICategoriesService categoriesService) { this.categories = categoriesService; }
public CategoriesController(ICategoriesService categoriesService, IGetCountsService getCountsService) { this.categoriesService = categoriesService; this.getCountsService = getCountsService; }
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; }
public CategoryController(ICategoriesService categories) { this.categories = categories; }
public CategoriesController(ICategoriesService categories) { Guard.WhenArgument(categories, "categories").IsNull().Throw(); this.categories = categories; }
public CoursesController(ICoursesService coursesService, ICategoriesService categoriesService, ILoggerService logger) : base(logger) { this.coursesService = coursesService; this.categoriesService = categoriesService; }
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; }
public CategoryController(ICategoriesService categoriesService, IProductsService productsService) { this.categoriesService = categoriesService; }
public TripsController(ITripsService tripsService, ICitiesService citiesService, ICategoriesService categoriesService) { this.tripsService = tripsService; this.citiesService = citiesService; this.categoriesService = categoriesService; }