Mercurial > silverbladetech
comparison Stocks/Stocks.Common/Fakes/FakeWebClientShim.cs @ 8:6e84a4c92378
FakeWebClientShim added and refactoring
author | stevenh7776 stevenhollidge@hotmail.com |
---|---|
date | Tue, 21 Feb 2012 17:05:47 +0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
7:cdc88fd7cb89 | 8:6e84a4c92378 |
---|---|
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 } |