public override void SetUp()
        {
            base.SetUp();

            _messageMentionService    = ServiceLocator.Current.GetInstance <IMessageMentionService>();
            _messageRepository        = ServiceLocator.Current.GetInstance <IMessageRepository>();
            _messageMentionRepository = ServiceLocator.Current.GetInstance <IMessageMentionRepository>();
            _unitOfWork = ServiceLocator.Current.GetInstance <IUnitOfWork>();
        }
 public UserMessageService(
     IUserMessageRepository userMessageRepository,
     IMessageRepository messageRepository,
     IMessageHashtagService messageHashtagService,
     IMessageMentionService messageMentionService,
     IUnitOfWork unitOfWork,
     IDatabaseTransactionService databaseTransactionService,
     ISearchService searchService)
 {
     _userMessageRepository      = userMessageRepository;
     _messageRepository          = messageRepository;
     _messageHashtagService      = messageHashtagService;
     _messageMentionService      = messageMentionService;
     _unitOfWork                 = unitOfWork;
     _databaseTransactionService = databaseTransactionService;
     _searchService              = searchService;
 }