public MessageFavouriteService(
     IMessageFavouriteRepository messageFavouriteRepository,
     IUserRepository userRepository,
     IMessageRepository messageRepository)
 {
     _messageFavouriteRepository = messageFavouriteRepository;
     _userRepository             = userRepository;
     _messageRepository          = messageRepository;
 }
Beispiel #2
0
        public override void SetUp()
        {
            base.SetUp();

            _messageFavouriteService        = ServiceLocator.Current.GetInstance <IMessageFavouriteService>();
            _messageRepository              = ServiceLocator.Current.GetInstance <IMessageRepository>();
            _userMessageRepository          = ServiceLocator.Current.GetInstance <IUserMessageRepository>();
            _favouriteUserMessageRepository = ServiceLocator.Current.GetInstance <IMessageFavouriteRepository>();
            _unitOfWork = ServiceLocator.Current.GetInstance <IUnitOfWork>();
        }