Mercurial > silverbladetech
annotate 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 |
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 } |