Exemplo n.º 1
0
 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;
        }
Exemplo n.º 3
0
        public CommentService(IUnitOfWork unitOfWork, ICommentRepository commentRepository, IPostRepository post)
        {
            this.commentRepository = commentRepository;
            this.postRepository = post;
            this.unitOfWork = unitOfWork;

        }
Exemplo n.º 4
0
 public CommentsPresenter()
 {
     _commentRepository = new CommentRepository();
     _webContext = new WebContext();
     _userSession = new UserSession();
     _alertService = new AlertService();
 }
Exemplo n.º 5
0
 /// <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;
 }
Exemplo n.º 6
0
 public CommentService(ICommentRepository commentRepository,ICommentUserRepository commentUserRepository, IUnitOfWork unitOfWork, IFollowUserRepository followUserRepository)
 {
     this.commentRepository = commentRepository;
     this.commentUserRepository = commentUserRepository;
     this.followUserRepository = followUserRepository;
     this.unitOfWork = unitOfWork;
 }
Exemplo n.º 7
0
 public CommentController(ICommentRepository commentRepository,
                          IVoteService voteService,
                          IContextService contextService) {
     _commentRepository = commentRepository;
     _voteService = voteService;
     _contextService = contextService;
 }
Exemplo n.º 8
0
 public CommentServices(ICommentRepository commentRepository, IPostRepository postRepository, UserServices userServices, AppConfiguration config)
 {
     this.commentRepository = commentRepository;
     this.config = config;
     this.userServices = userServices;
     this.postRepository = postRepository;
 }
Exemplo n.º 9
0
 public InfoController(IMemberRepository memberRepository, IMongoConnectionHandler mongoConnectionHandler, 
     ICommentRepository commentRepository, IInfoRepository infoRepository)
 {
     _memberRepo = memberRepository;
     _commentRepo = commentRepository;
     _infoRepo = infoRepository;
     _mongoConnectionHandler = mongoConnectionHandler;
 }
Exemplo n.º 10
0
 public PostService(IPostRepository postRepository,
     ICommentRepository commentRepository,
     ICategoryRepository categoryRepository)
 {
     this.postRepository = postRepository;
     this.commentRepository = commentRepository;
     this.categoryRepository = categoryRepository;
 }
Exemplo n.º 11
0
 public DomainService(IRepositoryContext repositoryContext,
                      IPostRepository postRepository,
                      ICommentRepository commentRepository) 
 {
     this.repositoryContext = repositoryContext;
     this.postRepository = postRepository;
     this.commentRepository = commentRepository;
 }
Exemplo n.º 12
0
        public CommentController(ICommentRepository commentRepository, ISettingRepository settingRepository)
        {
            _commentRepository = commentRepository;

            _settingRepository = settingRepository;

            _pageSize = _settingRepository.CommentListPageSize;
        }
Exemplo n.º 13
0
 public HomeController(IIngredientRepository ingredientRepository, IRecipeRepository recipeRepository, IDietRepository dietRepository, IAuthorRepository authorRepository, ICommentRepository commentRepository)
 {
     _ingredientRepository = ingredientRepository;
     _recipeRepository = recipeRepository;
     _dietRepository = dietRepository;
     _authorRepository = authorRepository;
     _commentRepository = commentRepository;
 }
Exemplo n.º 14
0
 public CommentService(IArticleService articleService, ICommentRepository commentRepository, ISessionManager sessionManger, IRoleService roleService, ISettingService settiongService)
 {
     _articleService = articleService;
     _commentRepository = commentRepository;
     _sessionManager = sessionManger;
     _roleService = roleService;
     _settiongService = settiongService;
 }
Exemplo n.º 15
0
 public ArticlesController(
     IArticleRepository articleRepository,
     ICommentRepository commentRepository,
     HttpContextBase baseContext)
 {
     this._httpContext = baseContext;
     this._articleRepository = articleRepository;
     this._commentRepository = commentRepository;
 }
Exemplo n.º 16
0
 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;
 }
Exemplo n.º 17
0
 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;
 }
Exemplo n.º 18
0
 public ArticlesController(
     IArticleRepository articleRepository, 
     ICommentRepository commentRepository,
     HttpContextBase baseContext)
 {
     this._httpContext        = baseContext;
     this._articleRepository = articleRepository;
     this._commentRepository = commentRepository;
     log4net.Config.XmlConfigurator.Configure();
 }
Exemplo n.º 19
0
 public UserStatisticsService(IFileRepository serviceFile
                               , IProjectRepository serviceProject
                               , ICommentRepository serviceComment
                               , IInvitRepository serviceInvit)
 {
     this.repoFile = serviceFile;
     this.repoProject = serviceProject;
     this.repoComment = serviceComment;
     this.repoInvit = serviceInvit;
 }
Exemplo n.º 20
0
 public BlogEngineService(IPostRepository postRepo, 
                          ICommentRepository commentRepo,
                          ICategoryRepository categoryRepo, 
                          ILogger log)
 {
     postRepository = postRepo;
     commentRepository = commentRepo;
     categoryRepository = categoryRepo;
     postLogger = log;
 }
Exemplo n.º 21
0
 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();
 }
Exemplo n.º 23
0
 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;
 }
Exemplo n.º 24
0
        /// <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;
        }
Exemplo n.º 25
0
 /// <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;
 }
Exemplo n.º 26
0
 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;
 }
Exemplo n.º 27
0
 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;
 }
Exemplo n.º 28
0
 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;
 }
Exemplo n.º 29
0
 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;
 }
Exemplo n.º 31
0
 public CommentServise(ICommentRepository commentRepository, IUserCredentialsRepository userCredentialsRepository)
 {
     _commentRepository         = commentRepository;
     _userCredentialsRepository = userCredentialsRepository;
 }
Exemplo n.º 32
0
        //private readonly IConfiguration _config;

        public CommentController(ICommentRepository repo)
        {
            _repo = repo;
        }
Exemplo n.º 33
0
 public CommentService(ICommentRepository repository)
 {
     this.repository = repository;
 }
Exemplo n.º 34
0
 public CommentService(ICommentRepository commentRepository, IMapper mapper, ICacheManager cacheManager)
 {
     _commentRepository = commentRepository;
     _mapper            = mapper;
     _cacheManager      = cacheManager;
 }
Exemplo n.º 35
0
 public CommentsController(ICommentRepository repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
Exemplo n.º 36
0
 public CommentService(ICommentRepository commentRepository)
 {
     _commentRepository = commentRepository;
 }
Exemplo n.º 37
0
 public ProductController(IRepositoryBase <Product> productRepository, ICommentRepository commentRepository)
 {
     this.productRepository = productRepository;
     this.commentRepository = commentRepository;
 }
Exemplo n.º 38
0
        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);
        }
Exemplo n.º 39
0
 public CommentService(IUnitOfWork uow, ICommentRepository repository)
 {
     this.uow = uow;
     this.commentRepository = repository;
 }
Exemplo n.º 40
0
 public CommentsController(IArticleRepository articleRepository, ICommentRepository commentRepository)
 {
     _articleRepository = articleRepository;
     _commentRepository = commentRepository;
 }
Exemplo n.º 41
0
 public CommentController(ICommentRepository repository, IUnitOfWork unitOfWork, IAuthorizationService authorizationService)
 {
     this._repository          = repository;
     this._unitOfWork          = unitOfWork;
     this.authorizationService = authorizationService;
 }
Exemplo n.º 42
0
 public CommentsAndFile(ICommentRepository commentRepo, IItemFileRepository itemFileRepo)
 {
     _commentRepo  = commentRepo;
     _itemFileRepo = itemFileRepo;
 }
Exemplo n.º 43
0
 public PostsController(IPostRepository pR, ICommentRepository cR)
 {
     _postRepository    = pR;
     _commentRepository = cR;
 }
Exemplo n.º 44
0
 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;
 }
Exemplo n.º 46
0
 public CommentRepository_Tests()
 {
     _cmsKitTestData    = GetRequiredService <CmsKitTestData>();
     _commentRepository = GetRequiredService <ICommentRepository>();
 }
 public CommentService(ICommentRepository repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
Exemplo n.º 48
0
 public CommentService(ICommentRepository commentRepository, IRepository <Post> postRepository, IMapper mapper)
 {
     _commentRepository = commentRepository;
     _postRepository    = postRepository;
     _mapper            = mapper;
 }
Exemplo n.º 49
0
 public PostAppService(IPostRepository postRepository, ITagRepository tagRepository, ICommentRepository commentRepository, IBlogUserLookupService userLookupService)
 {
     UserLookupService  = userLookupService;
     _postRepository    = postRepository;
     _tagRepository     = tagRepository;
     _commentRepository = commentRepository;
 }
Exemplo n.º 50
0
 public PostWriter(IPostRepository postRepository, ICommentRepository commentRepository, IUserContext userContext)
 {
     _postRepository    = postRepository;
     _commentRepository = commentRepository;
     _userContext       = userContext;
 }
Exemplo n.º 51
0
 public CommentService(ICommentRepository commentRepository, IUserRepository userRepository, IMovieRepository movieRepository)
 {
     _commentRepository = commentRepository;
     _userRepository    = userRepository;
     _movieRepository   = movieRepository;
 }
Exemplo n.º 52
0
 public PostController(IPostRepository repo, ICommentRepository commentRepo, IUserProfileRepository userProfileRepository)
 {
     _repo                  = repo;
     _commentRepo           = commentRepo;
     _userProfileRepository = userProfileRepository;
 }
Exemplo n.º 53
0
 public CommentRepositoryTestsFixture()
 {
     repository = new CommentRepository(new InMemoryDbContextFactory());
 }
Exemplo n.º 54
0
 public VideoCommenterMock(IYouTubeAccountPool accountPool, ICommentRepository commentRepository)
 {
     this.accountPool       = accountPool;
     this.commentRepository = commentRepository;
 }
Exemplo n.º 55
0
 public CommentController()
 {
     this.repo = new CommentRepository();
 }
Exemplo n.º 56
0
 public HomeController(IMusicRepository musicRepository, ViewModel viewModel, IDetailRepository detailRepository, ICommentRepository commentRepository)
 {
     _musicRepository   = musicRepository;
     _viewModel         = viewModel;
     _detailRepository  = detailRepository;
     _commentRepository = commentRepository;
 }
Exemplo n.º 57
0
 public CommentBusiness(ICommentRepository commentRepository)
 {
     _commentRepository = commentRepository;
 }
Exemplo n.º 58
0
 public CommentController(ICommentRepository commentRepository, IUserRepository userRepository)
 {
     _commentRepository = commentRepository;
     _userRepository    = userRepository;
 }
Exemplo n.º 59
0
 public UnitOfWork(ICommentRepository commentRepository, IPostRepository postRepository, BaseContext context)
 {
     CommentRepository = commentRepository;
     PostRepository    = postRepository;
     _context          = context;
 }
Exemplo n.º 60
0
 public static ICommentService AsService(this ICommentRepository repository, IBlogService blogService)
 {
     return(new RepoBasedService(blogService, repository));
 }