Mercurial > silverbladetech
annotate MetroWpf/Stocks.Common/Fakes/FakeWebClientShim.cs @ 35:83c1f62d9370
All working except image so far
author | adminsh@apollo |
---|---|
date | Tue, 27 Mar 2012 16:15:45 +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 } |