Ejemplo n.º 1
0
 public RequestWithRetry()
 {
     InitializeComponent();
     var vm = new RequestWithRetryViewModel();
     this.DataContext = vm;
     vm.GetData(Scheduler.Dispatcher);//initialize and call out to get data
 }
Ejemplo n.º 2
0
        public RequestWithRetry()
        {
            InitializeComponent();
            var vm = new RequestWithRetryViewModel();

            this.DataContext = vm;
            vm.GetData(Scheduler.Dispatcher);//initialize and call out to get data
        }
Ejemplo n.º 3
0
 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!");
 }