Mercurial > silverbladetech
annotate Stocks/Stocks.Common/Fakes/FakeWebClientShim.cs @ 39:4b8b38d17d24 MetroWPF CTP v0.1
Quick tidy up for ctp 0.1 release
author | adminsh@apollo |
---|---|
date | Tue, 03 Apr 2012 15:33:18 +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 } |