annotate MetroWpf/Stocks.Common/Fakes/FakeWebClientShim.cs @ 100:9b6855dc165e

Updated System.Windows into Libs
author stevenhollidge <stevenhollidge@hotmail.com>
date Sat, 05 May 2012 23:04:16 +0100
parents 6109bc268b90
children
rev   line source
20
adminsh@apollo
parents:
diff changeset
1 
adminsh@apollo
parents:
diff changeset
2 namespace Stocks.Common.Fakes
adminsh@apollo
parents:
diff changeset
3 {
adminsh@apollo
parents:
diff changeset
4 public class FakeWebClientShim : IWebClientShim
adminsh@apollo
parents:
diff changeset
5 {
adminsh@apollo
parents:
diff changeset
6 private string _downloadString;
adminsh@apollo
parents:
diff changeset
7
adminsh@apollo
parents:
diff changeset
8 public FakeWebClientShim(string downloadString = "")
adminsh@apollo
parents:
diff changeset
9 {
adminsh@apollo
parents:
diff changeset
10 _downloadString = downloadString;
adminsh@apollo
parents:
diff changeset
11 }
adminsh@apollo
parents:
diff changeset
12
adminsh@apollo
parents:
diff changeset
13 public string DownloadString(string address)
adminsh@apollo
parents:
diff changeset
14 {
adminsh@apollo
parents:
diff changeset
15 return _downloadString;
adminsh@apollo
parents:
diff changeset
16 }
adminsh@apollo
parents:
diff changeset
17
adminsh@apollo
parents:
diff changeset
18 public void Dispose()
adminsh@apollo
parents:
diff changeset
19 {
adminsh@apollo
parents:
diff changeset
20 // do nothing
adminsh@apollo
parents:
diff changeset
21 }
adminsh@apollo
parents:
diff changeset
22 }
adminsh@apollo
parents:
diff changeset
23 }