Mercurial > silverbladetech
annotate MetroWpf/Stocks.Common/Fakes/FakeWebClientShim.cs @ 70:39ba36cc82c5
not sure about these...
author | Steven Hollidge <stevenhollidge@hotmail.com> |
---|---|
date | Mon, 23 Apr 2012 11:06:29 +0100 |
parents | 6109bc268b90 |
children |
rev | line source |
---|---|
20 | 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 } |