コード例 #1
0
 public MessageEngine(IDaoFactory daoFactory, EngineFactory engineFactory)
     : base(NotifyConstants.Event_NewCommentForMessage, engineFactory)
 {
     this.engineFactory = engineFactory;
     messageDao         = daoFactory.GetMessageDao();
     commentDao         = daoFactory.GetCommentDao();
 }
コード例 #2
0
 public SubsController(IContextService contextService,
     ISubDao subDao,
     IMapper mapper,
     ICommandBus commandBus,
     IUserContext userContext,
     IPostDao postDao,
     IVoteDao voteDao,
     ICommentDao commentDao,
     IPermissionDao permissionDao,
     ICommentNodeHierarchyBuilder commentNodeHierarchyBuilder,
     ICommentTreeContextBuilder commentTreeContextBuilder,
     IPostWrapper postWrapper,
     ISubWrapper subWrapper,
     ICommentWrapper commentWrapper)
 {
     _contextService = contextService;
     _subDao = subDao;
     _mapper = mapper;
     _commandBus = commandBus;
     _userContext = userContext;
     _postDao = postDao;
     _voteDao = voteDao;
     _commentDao = commentDao;
     _permissionDao = permissionDao;
     _commentNodeHierarchyBuilder = commentNodeHierarchyBuilder;
     _commentTreeContextBuilder = commentTreeContextBuilder;
     _postWrapper = postWrapper;
     _subWrapper = subWrapper;
     _commentWrapper = commentWrapper;
 }
コード例 #3
0
 public PostInteractService(IFavoriteDao favoriteDao, ICommentDao commentDao, IPostDao postDao, IUserDao userDao)
 {
     this.favoriteDao = favoriteDao;
     this.commentDao  = commentDao;
     this.postDao     = postDao;
     this.userDao     = userDao;
 }
コード例 #4
0
 public MessageEngine(IDaoFactory daoFactory, EngineFactory engineFactory)
     : base(NotifyConstants.Event_NewCommentForMessage, engineFactory)
 {
     this.engineFactory = engineFactory;
     messageDao = daoFactory.GetMessageDao();
     commentDao = daoFactory.GetCommentDao();
 }
コード例 #5
0
 public static void MyClassInitialize(TestContext testContext)
 {
     kernel         = TestManager.ConfigureNInjectKernel();
     productDao     = kernel.Get <IProductDao>();
     categoryDao    = kernel.Get <ICategoryDao>();
     commentDao     = kernel.Get <ICommentDao>();
     userProfileDao = kernel.Get <IUserProfileDao>();
 }
コード例 #6
0
 public CommentWrapper(ICommentDao commentDao, IMembershipService membershipService, ISubDao subDao, IPostDao postDao, IPermissionDao permissionDao, IVoteDao voteDao)
 {
     _commentDao = commentDao;
     _membershipService = membershipService;
     _subDao = subDao;
     _postDao = postDao;
     _permissionDao = permissionDao;
     _voteDao = voteDao;
 }
コード例 #7
0
ファイル: CommentServiceTest.cs プロジェクト: fpozzas/fic
 public static void MyClassInitialize(TestContext testContext)
 {
     container = TestManager.ConfigureUnityContainer("unity");
     UserService = container.Resolve<IUserService>();
     CommentService = container.Resolve<ICommentService>();
     commentDao = container.Resolve<ICommentDao>();
     tagDao = container.Resolve<ITagDao>();
     userDao = container.Resolve<IUserDao>();
 }
コード例 #8
0
 public NewFeedService(IUserDao userDao, IPostDao postDao, ICommentDao commentDao, IFavoriteDao favoriteDao,
                       IRelationshipService relationshipService)
 {
     this.userDao             = userDao;
     this.postDao             = postDao;
     this.commentDao          = commentDao;
     this.favoriteDao         = favoriteDao;
     this.relationshipService = relationshipService;
 }
コード例 #9
0
        public DataAccess(
            IPostDao postDao,
            ICommentDao commentDao)
        {
            PostDao = postDao ??
                      throw new ArgumentNullException($"{nameof(postDao)}");

            CommentDao = commentDao ??
                         throw new ArgumentNullException($"{nameof(commentDao)}");
        }
コード例 #10
0
ファイル: ICommentDaoTest.cs プロジェクト: lob94/Mad
 public static void MyClassInitialize(TestContext testContext)
 {
     kernel         = TestManager.ConfigureNInjectKernel();
     eventDao       = kernel.Get <IEventDao>();
     categoryDao    = kernel.Get <ICategoryDao>();
     commentDao     = kernel.Get <ICommentDao>();
     userProfileDao = kernel.Get <IUserProfileDao>();
     labelDao       = kernel.Get <ILabelDao>();
     eventService   = kernel.Get <IEventService>();
 }
コード例 #11
0
        public static void MyClassInitialize(TestContext testContext)
        {
            kernel = TestManager.ConfigureNInjectKernel();

            sportEventService = kernel.Get <ISportEventService>();
            FavoritesDao      = kernel.Get <IFavoritesDao>();
            userService       = kernel.Get <IUserService>();
            FavoritesDao      = kernel.Get <IFavoritesDao>();
            commentDao        = kernel.Get <ICommentDao>();
            TagDao            = kernel.Get <ITagDao>();
        }
コード例 #12
0
 public static void MyClassInitialize(TestContext testContext)
 {
     Console.WriteLine(Assembly.GetExecutingAssembly().ToString());
     container = TestManager.ConfigureUnityContainer("unity");
     eventDao = container.Resolve<IEventDao>();
     eventService = container.Resolve<IEventService>();
     categoryDao = container.Resolve<ICategoryDao>();
     userProfileDao = container.Resolve<IUserProfileDao>();
     userService = container.Resolve<IUserService>();
     commentDao = container.Resolve<ICommentDao>();
     commentService = container.Resolve<ICommentService>();
     tagDao = container.Resolve<ITagDao>();
 }
コード例 #13
0
        public static void MyClassInitialize(TestContext testContext)
        {
            kernel = TestManager.ConfigureNInjectKernel();

            productDao          = kernel.Get <IProductDao>();
            categoryDao         = kernel.Get <ICategoryDao>();
            specificPropertyDao = kernel.Get <ISpecificPropertyDao>();
            commentDao          = kernel.Get <ICommentDao>();
            tagDao  = kernel.Get <ITagDao>();
            userDao = kernel.Get <IUserProfileDao>();

            productService = kernel.Get <IProductService>();
        }
コード例 #14
0
ファイル: CommentsController.cs プロジェクト: skimur/skimur
 public CommentsController(ICommandBus commandBus,
     IUserContext userContext,
     ICommentWrapper commentWrapper,
     ICommentTreeContextBuilder commentTreeContextBuilder,
     ICommentNodeHierarchyBuilder commentNodeHierarchyBuilder,
     ICommentDao commentDao)
 {
     _commandBus = commandBus;
     _userContext = userContext;
     _commentWrapper = commentWrapper;
     _commentTreeContextBuilder = commentTreeContextBuilder;
     _commentNodeHierarchyBuilder = commentNodeHierarchyBuilder;
     _commentDao = commentDao;
 }
コード例 #15
0
 public CommentsController(ICommandBus commandBus,
                           IUserContext userContext,
                           ICommentWrapper commentWrapper,
                           ICommentTreeContextBuilder commentTreeContextBuilder,
                           ICommentNodeHierarchyBuilder commentNodeHierarchyBuilder,
                           ICommentDao commentDao)
 {
     _commandBus                  = commandBus;
     _userContext                 = userContext;
     _commentWrapper              = commentWrapper;
     _commentTreeContextBuilder   = commentTreeContextBuilder;
     _commentNodeHierarchyBuilder = commentNodeHierarchyBuilder;
     _commentDao                  = commentDao;
 }
コード例 #16
0
        public static void MyClassInitialize(TestContext testContext)
        {
            container = TestManager.ConfigureUnityContainer("unity");

            userService = container.Resolve<IUserService>();
            commentService = container.Resolve<ICommentService>();
            commentDao = container.Resolve<ICommentDao>();
            labelDao = container.Resolve<ILabelDao>();

            string[] tmp = new string[] { "Opinión Personal", "CARACTERíSTiCAS TéCNiCAS", "Tecnología" };
            for (int cnt = 0; cnt < tmp.Length; cnt++)
            {
                labels.Add(tmp[cnt]);
            }
        }
コード例 #17
0
 public CommentWrapper(ICommentDao commentDao,
                       IMembershipService membershipService,
                       ISubDao subDao,
                       IPostDao postDao,
                       IPermissionDao permissionDao,
                       IVoteDao voteDao,
                       IReportDao reportDao)
 {
     _commentDao        = commentDao;
     _membershipService = membershipService;
     _subDao            = subDao;
     _postDao           = postDao;
     _permissionDao     = permissionDao;
     _voteDao           = voteDao;
     _reportDao         = reportDao;
 }
コード例 #18
0
ファイル: UsersController.cs プロジェクト: snetts/skimur
 public UsersController(IMembershipService membershipService,
                        ISubDao subDao,
                        IModerationDao moderationDao,
                        IKarmaDao karmaDao,
                        ICommentDao commentDao,
                        ICommentWrapper commentWrapper,
                        IPostDao postDao,
                        IPostWrapper postWrapper,
                        IUserContext userContext,
                        IContextService contextService)
 {
     _membershipService = membershipService;
     _subDao            = subDao;
     _moderationDao     = moderationDao;
     _karmaDao          = karmaDao;
     _commentDao        = commentDao;
     _commentWrapper    = commentWrapper;
     _postDao           = postDao;
     _postWrapper       = postWrapper;
     _userContext       = userContext;
     _contextService    = contextService;
 }
コード例 #19
0
ファイル: ReportsController.cs プロジェクト: skimur/skimur
 public ReportsController(ILogger<ReportsController> logger,
     ICommandBus commandBus,
     IUserContext userContext,
     ISubDao subDao,
     ISubWrapper subWrapper,
     IPermissionDao permissionDao,
     IPostDao postDao,
     IPostWrapper postWrapper,
     ICommentDao commentDao,
     ICommentWrapper commentWrapper)
 {
     _logger = logger;
     _commandBus = commandBus;
     _userContext = userContext;
     _subDao = subDao;
     _subWrapper = subWrapper;
     _permissionDao = permissionDao;
     _postDao = postDao;
     _postWrapper = postWrapper;
     _commentDao = commentDao;
     _commentWrapper = commentWrapper;
 }
コード例 #20
0
ファイル: UsersController.cs プロジェクト: skimur/skimur
 public UsersController(IMembershipService membershipService,
     ISubDao subDao,
     IModerationDao moderationDao,
     IKarmaDao karmaDao,
     ICommentDao commentDao,
     ICommentWrapper commentWrapper,
     IPostDao postDao,
     IPostWrapper postWrapper,
     IUserContext userContext,
     IContextService contextService)
 {
     _membershipService = membershipService;
     _subDao = subDao;
     _moderationDao = moderationDao;
     _karmaDao = karmaDao;
     _commentDao = commentDao;
     _commentWrapper = commentWrapper;
     _postDao = postDao;
     _postWrapper = postWrapper;
     _userContext = userContext;
     _contextService = contextService;
 }
コード例 #21
0
 public ReportsController(ILogger <ReportsController> logger,
                          ICommandBus commandBus,
                          IUserContext userContext,
                          ISubDao subDao,
                          ISubWrapper subWrapper,
                          IPermissionDao permissionDao,
                          IPostDao postDao,
                          IPostWrapper postWrapper,
                          ICommentDao commentDao,
                          ICommentWrapper commentWrapper)
 {
     _logger         = logger;
     _commandBus     = commandBus;
     _userContext    = userContext;
     _subDao         = subDao;
     _subWrapper     = subWrapper;
     _permissionDao  = permissionDao;
     _postDao        = postDao;
     _postWrapper    = postWrapper;
     _commentDao     = commentDao;
     _commentWrapper = commentWrapper;
 }
コード例 #22
0
 public SubsController(IContextService contextService,
                       ISubDao subDao,
                       IMapper mapper,
                       ICommandBus commandBus,
                       IUserContext userContext,
                       IPostDao postDao,
                       IVoteDao voteDao,
                       ICommentDao commentDao,
                       IPermissionDao permissionDao,
                       ICommentNodeHierarchyBuilder commentNodeHierarchyBuilder,
                       ICommentTreeContextBuilder commentTreeContextBuilder,
                       IPostWrapper postWrapper,
                       ISubWrapper subWrapper,
                       ICommentWrapper commentWrapper,
                       IMembershipService membershipService,
                       ISettingsProvider <SubSettings> subSettings,
                       ISubActivityDao subActivityDao,
                       IModerationDao moderationDao)
 {
     _contextService = contextService;
     _subDao         = subDao;
     _mapper         = mapper;
     _commandBus     = commandBus;
     _userContext    = userContext;
     _postDao        = postDao;
     _voteDao        = voteDao;
     _commentDao     = commentDao;
     _permissionDao  = permissionDao;
     _commentNodeHierarchyBuilder = commentNodeHierarchyBuilder;
     _commentTreeContextBuilder   = commentTreeContextBuilder;
     _postwrapper        = postWrapper;
     _subwrapper         = subWrapper;
     _commentWrapper     = commentWrapper;
     _membershiipService = membershipService;
     _subSettings        = subSettings;
     _subActivityDao     = subActivityDao;
     _moderationDao      = moderationDao;
 }
コード例 #23
0
ファイル: SubsController.cs プロジェクト: skimur/skimur
 public SubsController(IContextService contextService,
     ISubDao subDao,
     IMapper mapper,
     ICommandBus commandBus,
     IUserContext userContext,
     IPostDao postDao,
     IVoteDao voteDao,
     ICommentDao commentDao,
     IPermissionDao permissionDao,
     ICommentNodeHierarchyBuilder commentNodeHierarchyBuilder,
     ICommentTreeContextBuilder commentTreeContextBuilder,
     IPostWrapper postWrapper,
     ISubWrapper subWrapper,
     ICommentWrapper commentWrapper,
     IMembershipService membershipService,
     ISettingsProvider<SubSettings> subSettings,
     ISubActivityDao subActivityDao,
     IModerationDao moderationDao)
 {
     _contextService = contextService;
     _subDao = subDao;
     _mapper = mapper;
     _commandBus = commandBus;
     _userContext = userContext;
     _postDao = postDao;
     _voteDao = voteDao;
     _commentDao = commentDao;
     _permissionDao = permissionDao;
     _commentNodeHierarchyBuilder = commentNodeHierarchyBuilder;
     _commentTreeContextBuilder = commentTreeContextBuilder;
     _postWrapper = postWrapper;
     _subWrapper = subWrapper;
     _commentWrapper = commentWrapper;
     _membershipService = membershipService;
     _subSettings = subSettings;
     _subActivityDao = subActivityDao;
     _moderationDao = moderationDao;
 }
コード例 #24
0
ファイル: PostsController.cs プロジェクト: snetts/skimur
 public PostsController(ISubDao subDao,
                        ISubWrapper subWrapper,
                        IPostDao postDao,
                        IPostWrapper postWrapper,
                        IUserContext userContext,
                        ICommandBus commandBus,
                        IContextService contextService,
                        ICommentTreeContextBuilder commentTreeContextBuilder,
                        ICommentDao commentDao,
                        ISubActivityDao subActivityDao,
                        ICommentNodeHierarchyBuilder commentNodeHierarchyBuilder)
 {
     _subDao                      = subDao;
     _subWrapper                  = subWrapper;
     _postDao                     = postDao;
     _postWrapper                 = postWrapper;
     _userContext                 = userContext;
     _commandBus                  = commandBus;
     _contextService              = contextService;
     _commentTreeContextBuilder   = commentTreeContextBuilder;
     _commentDao                  = commentDao;
     _subActivityDao              = subActivityDao;
     _commentNodeHierarchyBuilder = commentNodeHierarchyBuilder;
 }
コード例 #25
0
ファイル: PostsController.cs プロジェクト: skimur/skimur
 public PostsController(ISubDao subDao,
     ISubWrapper subWrapper,
     IPostDao postDao,
     IPostWrapper postWrapper,
     IUserContext userContext,
     ICommandBus commandBus,
     IContextService contextService,
     ICommentTreeContextBuilder commentTreeContextBuilder,
     ICommentDao commentDao,
     ISubActivityDao subActivityDao,
     ICommentNodeHierarchyBuilder commentNodeHierarchyBuilder)
 {
     _subDao = subDao;
     _subWrapper = subWrapper;
     _postDao = postDao;
     _postWrapper = postWrapper;
     _userContext = userContext;
     _commandBus = commandBus;
     _contextService = contextService;
     _commentTreeContextBuilder = commentTreeContextBuilder;
     _commentDao = commentDao;
     _subActivityDao = subActivityDao;
     _commentNodeHierarchyBuilder = commentNodeHierarchyBuilder;
 }
コード例 #26
0
 public CommentService(ICommentDao commentDao)
 {
     _commentDao = commentDao;
 }
コード例 #27
0
 public CommentLogic(ICommentDao commentDao, IFileDao fileDao)
 {
     _commentDao = commentDao;
     _fileDao    = fileDao;
 }
コード例 #28
0
 private ServiceFacade()
 {
     userDao    = DaoFactory.getFactory().getUserDao(dataModelContainer);
     movieDao   = DaoFactory.getFactory().getMovieDao(dataModelContainer);
     commentDao = DaoFactory.getFactory().getCommentDao(dataModelContainer);
 }
コード例 #29
0
 public CommentEngine(IDaoFactory daoFactory)
 {
     _commentDao = daoFactory.GetCommentDao();
 }
コード例 #30
0
 public ServiceFacade()
 {
     cDao = AbstractDaoFactory.getFactory().getCommentDao();
     mDao = AbstractDaoFactory.getFactory().getMovieDao();
     uDao = AbstractDaoFactory.getFactory().GetUserDao();
 }
コード例 #31
0
 public CommentEngine(IDaoFactory daoFactory, EngineFactory factory)
 {
     commentDao   = daoFactory.GetCommentDao();
     this.factory = factory;
 }
 public PostPresentationService(IPostDao postDao, ICommentDao commentDao, ILogger logger)
 {
     this.postDao    = postDao;
     this.commentDao = commentDao;
     this.logger     = logger;
 }
コード例 #33
0
 public MessageEngine(IDaoFactory daoFactory, EngineFactory engineFactory)
 {
     _engineFactory = engineFactory;
     _messageDao = daoFactory.GetMessageDao();
     _commentDao = daoFactory.GetCommentDao();
 }
コード例 #34
0
 public CommentController(ICommentDao dao)
 {
     this.dao = dao;
 }
コード例 #35
0
 /// <summary>
 /// builder for DI
 /// </summary>
 /// <param name="repo"></param>
 public CommentMananger(ICommentDao repo)
 {
     this.Repo = repo;
 }
コード例 #36
0
 public CommentEngine(IDaoFactory daoFactory)
 {
     dao  = daoFactory.GetCommentDao();
     pdao = daoFactory.GetParticipantDao();
 }
コード例 #37
0
 public CommentLogic(ICommentDao commentDao)
 {
     _commentDao = commentDao;
 }
コード例 #38
0
 public CommentEngine(IDaoFactory daoFactory)
 {
     _commentDao = daoFactory.GetCommentDao();
 }
コード例 #39
0
 public MessageEngine(IDaoFactory daoFactory, EngineFactory engineFactory)
 {
     _engineFactory = engineFactory;
     _messageDao    = daoFactory.GetMessageDao();
     _commentDao    = daoFactory.GetCommentDao();
 }