public MessageEngine(IDaoFactory daoFactory, EngineFactory engineFactory)
     : base(NotifyConstants.Event_NewCommentForMessage, engineFactory)
 {
     this.engineFactory = engineFactory;
     messageDao         = daoFactory.GetMessageDao();
     commentDao         = daoFactory.GetCommentDao();
 }
 public MessageEngine(IDaoFactory daoFactory, EngineFactory engineFactory)
     : base(NotifyConstants.Event_NewCommentForMessage, engineFactory)
 {
     this.engineFactory = engineFactory;
     messageDao = daoFactory.GetMessageDao();
     commentDao = daoFactory.GetCommentDao();
 }
Beispiel #3
0
        public MessageDaoTests()
        {
            _authorHelperStub = new AuthorHelper();

            var dbContextOptionsBuilder = new DbContextOptionsBuilder <MessageBoardDbContext>();

            dbContextOptionsBuilder.UseInMemoryDatabase(Assembly.GetAssembly(typeof(MessageDaoTests)).GetName().Name);
            _dbContext = new MessageBoardDbContext(dbContextOptionsBuilder.Options);

            _dao = new MessageDao(_dbContext, _authorHelperStub);
        }
Beispiel #4
0
 public MessageWrapper(IMessageDao messageDao,
     IMembershipService membershipService,
     ISubDao subDao,
     IPermissionDao permissionDao,
     ICommentWrapper commentWrapper,
     IPostWrapper postWrapper)
 {
     _messageDao = messageDao;
     _membershipService = membershipService;
     _subDao = subDao;
     _permissionDao = permissionDao;
     _commentWrapper = commentWrapper;
     _postWrapper = postWrapper;
 }
Beispiel #5
0
 public MessageWrapper(IMessageDao messageDao,
                       IMembershipService membershipService,
                       ISubDao subDao,
                       IPermissionDao permissionDao,
                       ICommentWrapper commentWrapper,
                       IPostWrapper postWrapper)
 {
     _messageDao        = messageDao;
     _membershipService = membershipService;
     _subDao            = subDao;
     _permissionDao     = permissionDao;
     _commentWrapper    = commentWrapper;
     _postWrapper       = postWrapper;
 }
Beispiel #6
0
 public MessagesController(ICommandBus commandBus,
     ILogger<MessagesController> logger,
     IUserContext userContext,
     IMessageDao messageDao,
     IMessageWrapper messageWrapper,
     ISubDao subDao,
     IModerationDao moderationDao)
 {
     _commandBus = commandBus;
     _logger = logger;
     _userContext = userContext;
     _messageDao = messageDao;
     _messageWrapper = messageWrapper;
     _subDao = subDao;
     _moderationDao = moderationDao;
 }
Beispiel #7
0
 public MessagesController(ICommandBus commandBus,
                           ILogger <MessagesController> logger,
                           IUserContext userContext,
                           IMessageDao messageDao,
                           IMessageWrapper messageWrapper,
                           ISubDao subDao,
                           IModerationDao moderationDao)
 {
     _commandBus     = commandBus;
     _logger         = logger;
     _userContext    = userContext;
     _messageDao     = messageDao;
     _messageWrapper = messageWrapper;
     _subDao         = subDao;
     _moderationDao  = moderationDao;
 }
 public CommonController(IContextService contextService,
     ISubDao subDao,
     IUserContext userContext,
     IMessageDao messageDao,
     ISubWrapper subWrapper,
     IMembershipService membershipService,
     ISubActivityDao subActivityDao,
     ISettingsProvider<SubSettings> subSettings,
     ISubModerationDao subModerationDao)
 {
     _contextService = contextService;
     _subDao = subDao;
     _userContext = userContext;
     _messageDao = messageDao;
     _subWrapper = subWrapper;
     _membershipService = membershipService;
     _subActivityDao = subActivityDao;
     _subSettings = subSettings;
     _subModerationDao = subModerationDao;
 }
Beispiel #9
0
 public MessageEngine(IDaoFactory daoFactory, EngineFactory engineFactory)
 {
     _engineFactory = engineFactory;
     _messageDao = daoFactory.GetMessageDao();
     _commentDao = daoFactory.GetCommentDao();
 }
 public AccountHeaderViewComponent(IUserContext userContext, IMessageDao messageDao)
 {
     _userContext = userContext;
     _messageDao = messageDao;
 }
Beispiel #11
0
 public AccountHeaderViewComponent(IUserContext userContext, IMessageDao messageDao)
 {
     _userContext = userContext;
     _messageDao  = messageDao;
 }
 public MessageBL(IMessageDao messageDao)
 {
     _messageDao = messageDao;
 }
Beispiel #13
0
 public MessageBiz(IMessageDao dao)
 {
     this.m_Dao = dao;
 }
Beispiel #14
0
 public MessageEngine(IDaoFactory daoFactory, EngineFactory engineFactory)
 {
     _engineFactory = engineFactory;
     _messageDao    = daoFactory.GetMessageDao();
     _commentDao    = daoFactory.GetCommentDao();
 }
Beispiel #15
0
 public HomeService(IMessageDao messageSender, INewsDao news, IProjectsDao projects)
 {
     _message = messageSender;
     _news = news;
     _projects = projects;
 }
Beispiel #16
0
 public MessageAdapter(IMessageService messageService, IMessageDao messageDao)
 {
     _messageService = messageService ?? throw new ArgumentNullException(nameof(messageService));
     _messageDao     = messageDao ?? throw new ArgumentNullException(nameof(messageDao));
 }
Beispiel #17
0
 public MessageService(IMessageDao messageRepository)
 {
     _messageRepository = messageRepository;
 }
Beispiel #18
0
 public ChannelBL(IChannelDao channelDao, IMessageDao messageDao, IUserBL userBL)
 {
     _messageDao = messageDao;
     _channelDao = channelDao;
     _userBL     = userBL;
 }
Beispiel #19
0
 private MessageService()
 {
     _messageDao = new MessageSqlMapDao();
 }