annotate MetroWpf/Stocks.Common/Fakes/FakeWebClientShim.cs @ 117:9eadccc3b46c

REST working, next step unit tests
author stevenh7776
date Sun, 27 May 2012 15:06:35 +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 }