public GetData ( IScheduler observationScheduler ) : void | ||
observationScheduler | IScheduler | |
리턴 | void |
public RequestWithRetry() { InitializeComponent(); var vm = new RequestWithRetryViewModel(); this.DataContext = vm; vm.GetData(Scheduler.Dispatcher);//initialize and call out to get data }
public RequestWithRetry() { InitializeComponent(); var vm = new RequestWithRetryViewModel(); this.DataContext = vm; vm.GetData(Scheduler.Dispatcher);//initialize and call out to get data }
public void TestMethod1() { var vm = new RequestWithRetryViewModel(); var mock = new MockWebRequestObservableFactory(); vm.ResponseObservableFactory = mock; vm.GetData(Scheduler.CurrentThread); while (!mock.completed) { System.Threading.Thread.Sleep(100); } Assert.AreEqual(4, vm.Names.Count, "There should be 4 names in the list!"); }