Пример #1
0
 public GoogleUrlShortenerTests()
 {
     var shortener = new GoogleUrlShortener();
     this.shortener = shortener;
     this.messageRecorder = HttpMessageHandlerRecorder.CreatePlayback(typeof(GoogleUrlShortenerTests));
     shortener.HttpClient = new HttpClient(this.messageRecorder);
 }
Пример #2
0
		public void SetUp() {
			var shortener = new GoogleUrlShortener();
			this.shortener = shortener;
			shortener.HttpClient = new HttpClient(Mocks.HttpMessageHandlerRecorder.CreatePlayback());
		}