Mercurial > silverbladetech
annotate Stocks/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 | 6e84a4c92378 |
children |
rev | line source |
---|---|
8
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
1 |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
2 namespace Stocks.Common.Fakes |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
3 { |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
4 public class FakeWebClientShim : IWebClientShim |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
5 { |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
6 private string _downloadString; |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
7 |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
8 public FakeWebClientShim(string downloadString = "") |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
9 { |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
10 _downloadString = downloadString; |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
11 } |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
12 |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
13 public string DownloadString(string address) |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
14 { |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
15 return _downloadString; |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
16 } |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
17 |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
18 public void Dispose() |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
19 { |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
20 // do nothing |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
21 } |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
22 } |
6e84a4c92378
FakeWebClientShim added and refactoring
stevenh7776 stevenhollidge@hotmail.com
parents:
diff
changeset
|
23 } |