protected void Page_Load(object sender, EventArgs e) { _accountRepository = new AccountRepository(); _commentRepository = new CommentRepository(); _webContext = new WebContext(); _userSession = new UserSession(); }
public CommentsController(ICommentRepository commentRepository, ISettingsProvider settingsProvider) { _commentRepository = commentRepository; _settingsProvider = settingsProvider; PageSize = _settingsProvider.GetSettings().PageSize; }
public CommentService(IUnitOfWork unitOfWork, ICommentRepository commentRepository, IPostRepository post) { this.commentRepository = commentRepository; this.postRepository = post; this.unitOfWork = unitOfWork; }
public CommentsPresenter() { _commentRepository = new CommentRepository(); _webContext = new WebContext(); _userSession = new UserSession(); _alertService = new AlertService(); }
/// <summary> /// Initialize lesson controller /// </summary> /// <param name="classCalendarRepo">Class calendar repository</param> /// <param name="userprofileRepo">UserProfile repository</param> /// <param name="classRoomRepo">Class room repository</param> /// <param name="likeLessonRepo">Like lesson repository</param> /// <param name="lessonCatalogRepo">Lesson catalog repository</param> /// <param name="commentRepo">Comment repository</param> /// <param name="friendRequestRepo">Friend request repository</param> /// <param name="userActivityRepo">User activity repository</param> /// <param name="notificationCtrl">Notificaotion API</param> /// <param name="config">App configuration option</param> public LessonController(IClassCalendarRepository classCalendarRepo, IUserProfileRepository userprofileRepo, IClassRoomRepository classRoomRepo, ILikeLessonRepository likeLessonRepo, ILessonCatalogRepository lessonCatalogRepo, ICommentRepository commentRepo, IFriendRequestRepository friendRequestRepo, IUserActivityRepository userActivityRepo, NotificationController notificationCtrl, IOptions<AppConfigOptions> options, ILessonTestResultRepository lessonTestResultRepo, IDateTime dateTime) { _classCalendarRepo = classCalendarRepo; _userprofileRepo = userprofileRepo; _classRoomRepo = classRoomRepo; _likeLessonRepo = likeLessonRepo; _lessonCatalogRepo = lessonCatalogRepo; _commentRepo = commentRepo; _friendRequestRepo = friendRequestRepo; _userActivityRepo = userActivityRepo; _notificationCtrl = notificationCtrl; _appConfig = options.Value; _dateTime = dateTime; _lessonTestResultRepo = lessonTestResultRepo; }
public CommentService(ICommentRepository commentRepository,ICommentUserRepository commentUserRepository, IUnitOfWork unitOfWork, IFollowUserRepository followUserRepository) { this.commentRepository = commentRepository; this.commentUserRepository = commentUserRepository; this.followUserRepository = followUserRepository; this.unitOfWork = unitOfWork; }
public CommentController(ICommentRepository commentRepository, IVoteService voteService, IContextService contextService) { _commentRepository = commentRepository; _voteService = voteService; _contextService = contextService; }
public CommentServices(ICommentRepository commentRepository, IPostRepository postRepository, UserServices userServices, AppConfiguration config) { this.commentRepository = commentRepository; this.config = config; this.userServices = userServices; this.postRepository = postRepository; }
public InfoController(IMemberRepository memberRepository, IMongoConnectionHandler mongoConnectionHandler, ICommentRepository commentRepository, IInfoRepository infoRepository) { _memberRepo = memberRepository; _commentRepo = commentRepository; _infoRepo = infoRepository; _mongoConnectionHandler = mongoConnectionHandler; }
public PostService(IPostRepository postRepository, ICommentRepository commentRepository, ICategoryRepository categoryRepository) { this.postRepository = postRepository; this.commentRepository = commentRepository; this.categoryRepository = categoryRepository; }
public DomainService(IRepositoryContext repositoryContext, IPostRepository postRepository, ICommentRepository commentRepository) { this.repositoryContext = repositoryContext; this.postRepository = postRepository; this.commentRepository = commentRepository; }
public CommentController(ICommentRepository commentRepository, ISettingRepository settingRepository) { _commentRepository = commentRepository; _settingRepository = settingRepository; _pageSize = _settingRepository.CommentListPageSize; }
public HomeController(IIngredientRepository ingredientRepository, IRecipeRepository recipeRepository, IDietRepository dietRepository, IAuthorRepository authorRepository, ICommentRepository commentRepository) { _ingredientRepository = ingredientRepository; _recipeRepository = recipeRepository; _dietRepository = dietRepository; _authorRepository = authorRepository; _commentRepository = commentRepository; }
public CommentService(IArticleService articleService, ICommentRepository commentRepository, ISessionManager sessionManger, IRoleService roleService, ISettingService settiongService) { _articleService = articleService; _commentRepository = commentRepository; _sessionManager = sessionManger; _roleService = roleService; _settiongService = settiongService; }
public ArticlesController( IArticleRepository articleRepository, ICommentRepository commentRepository, HttpContextBase baseContext) { this._httpContext = baseContext; this._articleRepository = articleRepository; this._commentRepository = commentRepository; }
public WkysController(IMembershipService membershipService, IQuestionRepository questionRepo, IQuestionOptionRepository optionRepo, IAnswerRepository answerRepo, IUserRepository userRepo, ICommentRepository commentRepo) { _membershipService = membershipService; _questionRepo = questionRepo; _optionRepo = optionRepo; _answerRepo = answerRepo; _userRepo = userRepo; _commentRepo = commentRepo; }
public ContentService(IPostRepository postRepository, ICommentRepository commentRepository, ITagRepository tagRepository, ISiteSettingsService siteSettingsService, IMembershipService membershipService, HttpContextBase context) { _siteSettingsService = siteSettingsService; PostRepository = postRepository; CommentRepository = commentRepository; TagRepository = tagRepository; MembershipService = membershipService; Context = context; }
public ArticlesController( IArticleRepository articleRepository, ICommentRepository commentRepository, HttpContextBase baseContext) { this._httpContext = baseContext; this._articleRepository = articleRepository; this._commentRepository = commentRepository; log4net.Config.XmlConfigurator.Configure(); }
public UserStatisticsService(IFileRepository serviceFile , IProjectRepository serviceProject , ICommentRepository serviceComment , IInvitRepository serviceInvit) { this.repoFile = serviceFile; this.repoProject = serviceProject; this.repoComment = serviceComment; this.repoInvit = serviceInvit; }
public BlogEngineService(IPostRepository postRepo, ICommentRepository commentRepo, ICategoryRepository categoryRepo, ILogger log) { postRepository = postRepo; commentRepository = commentRepo; categoryRepository = categoryRepo; postLogger = log; }
public PostService( IUnitOfWork unitOfWork, IPostRepository postRepository, ICommentRepository commentRepository ) : base(unitOfWork) { _postRepository = postRepository; _commentRepository = commentRepository; }
public StoryService(int projectId, string apiKey, string fileRoot) { _projectRepo = new AgileZenProjectRepository(projectId, apiKey); _storyRepo = new AgileZenStoryRepository(projectId, apiKey); _actualRepo = new StoryAnnotationRepository(projectId, fileRoot); _commentRepo = new AgileZenCommentRepository(projectId, apiKey); _cache = new StoryCache(); _snapshotRepo = new SnapshotRepository(fileRoot); _timezone = new TimeZoneService(); }
public AccountController(IMembershipService membershipService, IQuestionRepository questionRepo, IQuestionOptionRepository optionRepo, IAnswerRepository answerRepo, IUserRepository userRepo, ICommentRepository commentRepo, IResetPasswordTokenRepository resetTokenRepo) { _membershipService = membershipService; _questionRepo = questionRepo; _optionRepo = optionRepo; _answerRepo = answerRepo; _userRepo = userRepo; _commentRepo = commentRepo; _resetTokenRepo = resetTokenRepo; }
/// <summary> /// Constructor /// </summary> /// <param name="commentRepository">ICommentRepository dependency</param> /// <param name="sessionRepository">ISessionRepository dependency</param> public CommentsController(ICommentRepository commentRepository, ISessionRepository sessionRepository) { if (sessionRepository == null) throw new ArgumentNullException("sessionRepository"); if (commentRepository == null) throw new ArgumentNullException("commentRepository"); _commentRepository = commentRepository; _sessionRepository = sessionRepository; }
/// <summary> /// Initialize Journal API /// </summary> /// <param name="userprofileRepo">Userprofile repository</param> /// <param name="friendReqeustRepo">Friend request repository</param> /// <param name="lessonCatalogRepo">Lesson catalog repository</param> /// <param name="classRoomRepo">Class room repository</param> /// <param name="commentRepo">Comment repository</param> public JournalController(IUserProfileRepository userprofileRepo, IFriendRequestRepository friendReqeustRepo, ILessonCatalogRepository lessonCatalogRepo, IClassRoomRepository classRoomRepo, ICommentRepository commentRepo) { _userprofileRepo = userprofileRepo; _friendRequestRepo = friendReqeustRepo; _lessonCatalogRepo = lessonCatalogRepo; _classRoomRepo = classRoomRepo; _commentRepo = commentRepo; }
public CommentManager(ICommentRepository commentRepository,IUserAuthHelper userSessionHelper, IIssueRepository issueRepository, IActivityRepository activityRepository,IEmailManager emailManager,ITeamRepository teamRepository,IEmailRepository emailRepository, IOptions<AppSettings> settings) { this._settings = settings.Value; this._emailRepository = emailRepository; this._teamRepository = teamRepository; this._emailManager = emailManager; this._commentRepository = commentRepository; this._userSessionHelper = userSessionHelper; this._issueRepository = issueRepository; this._activityRepository = activityRepository; }
public AdminController(IRestarauntRepository restRepository, IRestarauntLangRepository restLangRepository, ICommentRepository commentRepository, IImageRepository imageRepository, IUserRepository userRepository, ILanguageRepository langRepository, IWorkWithDBProvider workWithDBProvider) { this.restRepository = restRepository; this.restLangRepository = restLangRepository; this.commentRepository = commentRepository; this.imageRepository = imageRepository; this.userRepository = userRepository; this.langRepository = langRepository; this.workWithDBProvider = workWithDBProvider; }
public HomeController(IUserRepository userRepository, IArticleRepository articleRepository, IPictureRepository pictureRepository, ICommentRepository commentRepository, ISecurityManager sequrityManager) { this._articleRepository = articleRepository; this._pictureRepository = pictureRepository; this._sequrityManager = sequrityManager; this._userRepository = userRepository; this._commentRepository = commentRepository; }
public CommentController(ICommentRepository commentRepository ,ICustomerRepository customerRepository ,IPromotionRepository promotionRepository ,IProductRepository productRepository ,IResourceRepository resourceRepository) { this._commentRepository = commentRepository; _customerRepository = customerRepository; _productRepository = productRepository; _promotionRepository = promotionRepository; _resourceRepository = resourceRepository; }
/// <summary> /// Initializes a new instance of the <see cref="DashboardController"/> class. /// </summary> /// <param name="recentActivity">The recent activity.</param> /// <param name="statisticService">The statistic service.</param> /// <param name="userRepository">The user repository.</param> /// <param name="commentRepository">The comment repository.</param> /// <param name="reportingRepository">The reporting repository.</param> public DashboardController(IRecentRepository recentActivity, IDashboardStatisticService statisticService, IUserRepository userRepository, ICommentRepository commentRepository, IReportingRepository reportingRepository) { _recentActivity = recentActivity; _reportingRepository = reportingRepository; _commentRepository = commentRepository; _userRepository = userRepository; _statisticService = statisticService; }
public CommentServise(ICommentRepository commentRepository, IUserCredentialsRepository userCredentialsRepository) { _commentRepository = commentRepository; _userCredentialsRepository = userCredentialsRepository; }
//private readonly IConfiguration _config; public CommentController(ICommentRepository repo) { _repo = repo; }
public CommentService(ICommentRepository repository) { this.repository = repository; }
public CommentService(ICommentRepository commentRepository, IMapper mapper, ICacheManager cacheManager) { _commentRepository = commentRepository; _mapper = mapper; _cacheManager = cacheManager; }
public CommentsController(ICommentRepository repository, IMapper mapper) { _repository = repository; _mapper = mapper; }
public CommentService(ICommentRepository commentRepository) { _commentRepository = commentRepository; }
public ProductController(IRepositoryBase <Product> productRepository, ICommentRepository commentRepository) { this.productRepository = productRepository; this.commentRepository = commentRepository; }
public TeamsListViewModel(IUserRepository userRepository, IPostRepository postRepository, ITeamRepository teamRepository, ICommentRepository commentRepository, IMediator mediator) { this.userRepository = userRepository; this.postRepository = postRepository; this.teamRepository = teamRepository; this.commentRepository = commentRepository; this.mediator = mediator; User = new UserModel(); Team = new TeamModel(); Post = new PostModel(); Comment = new CommentModel(); OpenTeamWindowCommand = new RelayCommand(OpenTeamWindow); DeletePostCommand = new RelayCommand(DeletePost); DeleteCommentCommand = new RelayCommand(DeleteComment); AddCommentCommand = new RelayCommand(OpenCreateComment); CreateCommentCommand = new RelayCommand(CreateComment); LoadPostCommand = new RelayCommand(LoadPostById); CreatePostCommand = new RelayCommand(CreateNewPost); DeleteTeamCommand = new RelayCommand(DeleteTeam); ActivateTeamCommand = new RelayCommand(ActivateTeam); CreateTeamCommand = new RelayCommand(OpenCreateTeamWindow); RefreshTeamsWindowCommand = new RelayCommand(RefreshTeams); mediator.Register <ActiveTeamMessage>(GetTeam); mediator.Register <ActiveUserMessage>(GetUserAndTeams); mediator.Register <ActivePostMessage>(GetPost); }
public CommentService(IUnitOfWork uow, ICommentRepository repository) { this.uow = uow; this.commentRepository = repository; }
public CommentsController(IArticleRepository articleRepository, ICommentRepository commentRepository) { _articleRepository = articleRepository; _commentRepository = commentRepository; }
public CommentController(ICommentRepository repository, IUnitOfWork unitOfWork, IAuthorizationService authorizationService) { this._repository = repository; this._unitOfWork = unitOfWork; this.authorizationService = authorizationService; }
public CommentsAndFile(ICommentRepository commentRepo, IItemFileRepository itemFileRepo) { _commentRepo = commentRepo; _itemFileRepo = itemFileRepo; }
public PostsController(IPostRepository pR, ICommentRepository cR) { _postRepository = pR; _commentRepository = cR; }
public CommentController(ICommentRepository commentRepository, IPostRepository postRepository, IUserProfileRepository userProfileRepository) { _commentRepository = commentRepository; _userProfileRepository = userProfileRepository; _postRepository = postRepository; }
public CommentsController(IConfiguration configuration, BlogContext context, ICommentRepository repository) { _context = context; _repository = repository; _configuration = configuration; }
public CommentRepository_Tests() { _cmsKitTestData = GetRequiredService <CmsKitTestData>(); _commentRepository = GetRequiredService <ICommentRepository>(); }
public CommentService(ICommentRepository repository, IMapper mapper) { _repository = repository; _mapper = mapper; }
public CommentService(ICommentRepository commentRepository, IRepository <Post> postRepository, IMapper mapper) { _commentRepository = commentRepository; _postRepository = postRepository; _mapper = mapper; }
public PostAppService(IPostRepository postRepository, ITagRepository tagRepository, ICommentRepository commentRepository, IBlogUserLookupService userLookupService) { UserLookupService = userLookupService; _postRepository = postRepository; _tagRepository = tagRepository; _commentRepository = commentRepository; }
public PostWriter(IPostRepository postRepository, ICommentRepository commentRepository, IUserContext userContext) { _postRepository = postRepository; _commentRepository = commentRepository; _userContext = userContext; }
public CommentService(ICommentRepository commentRepository, IUserRepository userRepository, IMovieRepository movieRepository) { _commentRepository = commentRepository; _userRepository = userRepository; _movieRepository = movieRepository; }
public PostController(IPostRepository repo, ICommentRepository commentRepo, IUserProfileRepository userProfileRepository) { _repo = repo; _commentRepo = commentRepo; _userProfileRepository = userProfileRepository; }
public CommentRepositoryTestsFixture() { repository = new CommentRepository(new InMemoryDbContextFactory()); }
public VideoCommenterMock(IYouTubeAccountPool accountPool, ICommentRepository commentRepository) { this.accountPool = accountPool; this.commentRepository = commentRepository; }
public CommentController() { this.repo = new CommentRepository(); }
public HomeController(IMusicRepository musicRepository, ViewModel viewModel, IDetailRepository detailRepository, ICommentRepository commentRepository) { _musicRepository = musicRepository; _viewModel = viewModel; _detailRepository = detailRepository; _commentRepository = commentRepository; }
public CommentBusiness(ICommentRepository commentRepository) { _commentRepository = commentRepository; }
public CommentController(ICommentRepository commentRepository, IUserRepository userRepository) { _commentRepository = commentRepository; _userRepository = userRepository; }
public UnitOfWork(ICommentRepository commentRepository, IPostRepository postRepository, BaseContext context) { CommentRepository = commentRepository; PostRepository = postRepository; _context = context; }
public static ICommentService AsService(this ICommentRepository repository, IBlogService blogService) { return(new RepoBasedService(blogService, repository)); }