comparison MetroWpf/Stocks.Common/Fakes/FakeWebClientShim.cs @ 20:6109bc268b90

Latest
author adminsh@apollo
date Tue, 20 Mar 2012 13:37:46 +0000
parents
children
comparison
equal deleted inserted replaced
19:09d18d6e5f40 20:6109bc268b90
1 
2 namespace Stocks.Common.Fakes
3 {
4 public class FakeWebClientShim : IWebClientShim
5 {
6 private string _downloadString;
7
8 public FakeWebClientShim(string downloadString = "")
9 {
10 _downloadString = downloadString;
11 }
12
13 public string DownloadString(string address)
14 {
15 return _downloadString;
16 }
17
18 public void Dispose()
19 {
20 // do nothing
21 }
22 }
23 }