Exemplo n.º 1
0
 public MessageEngine(IDaoFactory daoFactory, EngineFactory engineFactory)
     : base(NotifyConstants.Event_NewCommentForMessage, engineFactory)
 {
     this.engineFactory = engineFactory;
     messageDao         = daoFactory.GetMessageDao();
     commentDao         = daoFactory.GetCommentDao();
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 public PostInteractService(IFavoriteDao favoriteDao, ICommentDao commentDao, IPostDao postDao, IUserDao userDao)
 {
     this.favoriteDao = favoriteDao;
     this.commentDao  = commentDao;
     this.postDao     = postDao;
     this.userDao     = userDao;
 }
Exemplo n.º 4
0
 public MessageEngine(IDaoFactory daoFactory, EngineFactory engineFactory)
     : base(NotifyConstants.Event_NewCommentForMessage, engineFactory)
 {
     this.engineFactory = engineFactory;
     messageDao = daoFactory.GetMessageDao();
     commentDao = daoFactory.GetCommentDao();
 }
Exemplo n.º 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>();
 }
Exemplo n.º 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;
 }
Exemplo n.º 7
0
 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>();
 }
Exemplo n.º 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;
 }
Exemplo n.º 9
0
        public DataAccess(
            IPostDao postDao,
            ICommentDao commentDao)
        {
            PostDao = postDao ??
                      throw new ArgumentNullException($"{nameof(postDao)}");

            CommentDao = commentDao ??
                         throw new ArgumentNullException($"{nameof(commentDao)}");
        }
Exemplo n.º 10
0
 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>();
 }
Exemplo n.º 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>();
        }
Exemplo n.º 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>();
 }
Exemplo n.º 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>();
        }
Exemplo n.º 14
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;
 }
Exemplo n.º 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;
 }
        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]);
            }
        }
Exemplo n.º 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;
 }
Exemplo n.º 18
0
 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;
 }
Exemplo n.º 19
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;
 }
Exemplo n.º 20
0
 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 23
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;
     _membershipService = membershipService;
     _subSettings = subSettings;
     _subActivityDao = subActivityDao;
     _moderationDao = moderationDao;
 }
Exemplo n.º 24
0
 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;
 }
Exemplo n.º 25
0
 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;
 }
Exemplo n.º 26
0
 public CommentService(ICommentDao commentDao)
 {
     _commentDao = commentDao;
 }
 public CommentLogic(ICommentDao commentDao, IFileDao fileDao)
 {
     _commentDao = commentDao;
     _fileDao    = fileDao;
 }
Exemplo n.º 28
0
 private ServiceFacade()
 {
     userDao    = DaoFactory.getFactory().getUserDao(dataModelContainer);
     movieDao   = DaoFactory.getFactory().getMovieDao(dataModelContainer);
     commentDao = DaoFactory.getFactory().getCommentDao(dataModelContainer);
 }
Exemplo n.º 29
0
 public CommentEngine(IDaoFactory daoFactory)
 {
     _commentDao = daoFactory.GetCommentDao();
 }
Exemplo n.º 30
0
 public ServiceFacade()
 {
     cDao = AbstractDaoFactory.getFactory().getCommentDao();
     mDao = AbstractDaoFactory.getFactory().getMovieDao();
     uDao = AbstractDaoFactory.getFactory().GetUserDao();
 }
Exemplo n.º 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;
 }
Exemplo n.º 33
0
 public MessageEngine(IDaoFactory daoFactory, EngineFactory engineFactory)
 {
     _engineFactory = engineFactory;
     _messageDao = daoFactory.GetMessageDao();
     _commentDao = daoFactory.GetCommentDao();
 }
Exemplo n.º 34
0
 public CommentController(ICommentDao dao)
 {
     this.dao = dao;
 }
Exemplo n.º 35
0
 /// <summary>
 /// builder for DI
 /// </summary>
 /// <param name="repo"></param>
 public CommentMananger(ICommentDao repo)
 {
     this.Repo = repo;
 }
Exemplo n.º 36
0
 public CommentEngine(IDaoFactory daoFactory)
 {
     dao  = daoFactory.GetCommentDao();
     pdao = daoFactory.GetParticipantDao();
 }
Exemplo n.º 37
0
 public CommentLogic(ICommentDao commentDao)
 {
     _commentDao = commentDao;
 }
Exemplo n.º 38
0
 public CommentEngine(IDaoFactory daoFactory)
 {
     _commentDao = daoFactory.GetCommentDao();
 }
Exemplo n.º 39
0
 public MessageEngine(IDaoFactory daoFactory, EngineFactory engineFactory)
 {
     _engineFactory = engineFactory;
     _messageDao    = daoFactory.GetMessageDao();
     _commentDao    = daoFactory.GetCommentDao();
 }