view Stocks/Stocks.Common/WebClientShim.cs @ 3:ef54074d5285

Removed Ninject IoCmodule as no longer required
author stevenh7776 stevenhollidge@hotmail.com
date Mon, 20 Feb 2012 22:29:44 +0700
parents 29ed98d659e9
children 57f20ba55884
line wrap: on
line source

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();
    }
  }
}