예제 #1
0
 public TwitterService(IRepository repository, IAuthenticationService authenticationService)
 {
     _twitter = new WebConsumer(TwitterConsumer.ServiceDescription, TokenManager);
     _shorteningService = new TwitterLib.UrlShorteningService(ShorteningService.Bitly);
     _repository = repository;
     _authenticationService = authenticationService;
 }
 public MessengerService(IRepository repository)
 {
     _twitter = new TwitterNet(Settings.TwitterUserName, TwitterNet.ToSecureString(Settings.TwitterPassword));
     _twitter.TwitterServerUrl = Settings.TwitterServiceUrl;
     _messageSender = new SendMessageDelegate(SendMessage);
     _urlShortneningService = new UrlShorteningService(ShorteningService.Bitly);
     _repository = repository;
 }