annotate Stocks/Stocks.Common/Fakes/FakeWebClientShim.cs @ 16:2395908fa45b

Getting there... 1.20am at BKK airport. MainWindow and Menu now have VMs, Login form is displayed first
author stevenh7776 stevenhollidge@hotmail.com
date Wed, 14 Mar 2012 01:23:18 +0700
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 }