diff Stocks/Stocks.Common/WebClientShim.cs @ 2:29ed98d659e9

Adding WebClientShim files
author stevenh7776 stevenhollidge@hotmail.com
date Mon, 20 Feb 2012 22:04:50 +0700
parents
children 57f20ba55884
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Stocks/Stocks.Common/WebClientShim.cs	Mon Feb 20 22:04:50 2012 +0700
@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Net;
+
+namespace Stocks.Common
+{
+  public class WebClientShim : IWebClientShim
+  {
+    private readonly WebClient _webClient;
+
+    public WebClientShim(WebClient webClient)
+    {
+      _webClient = webClient;
+    }
+    
+    public string DownloadString(string address)
+    {
+      return _webClient.DownloadData(address).ToString();
+    }
+  }
+}