Exemplo n.º 1
0
 public MessageUrlService(
     IMessageUrlRepository messageUrlRepository,
     IErrorService errorService,
     IBitlyService bitlyService)
 {
     _messageUrlRepository = messageUrlRepository;
     _errorService         = errorService;
     _bitlyService         = bitlyService;
 }
Exemplo n.º 2
0
        public override void SetUp()
        {
            base.SetUp();

            _errorService = MockRepository.GenerateStub <IErrorService>();

            _bitlyService         = ServiceLocator.Current.GetInstance <IBitlyService>();
            _messageUrlRepository = ServiceLocator.Current.GetInstance <IMessageUrlRepository>();
            _unitOfWork           = ServiceLocator.Current.GetInstance <IUnitOfWork>();

            _messageUrlService = new MessageUrlService(_messageUrlRepository, _errorService, _bitlyService);
        }