Esempio n. 1
0
        public void TestUnusualSettledBets()
        {
            var viewModel = new UnusualSettledBetsViewModel();

            viewModel.RefreshData();
            Assert.IsNotNull(viewModel.CustomerBets);
            Assert.AreEqual(6, viewModel.Customers.Count);
            Assert.AreEqual(1, viewModel.SelectedCustomer);
            Assert.AreEqual(7, viewModel.CustomerBets.Count);
            Assert.AreEqual(250, viewModel.CustomerBets[0].WinAmount);
            Assert.AreEqual(60, viewModel.CustomerBets[1].WinAmount);
        }
Esempio n. 2
0
        public void TestCustomerUnusualSettledBets()
        {
            var viewModel = new UnusualSettledBetsViewModel();
            viewModel.RefreshData();
            viewModel.SelectedCustomer = 4;

            Assert.AreEqual(4, viewModel.CustomerBets.Count);
            Assert.AreEqual(1000, viewModel.CustomerBets[0].WinAmount);
            Assert.AreEqual(2000, viewModel.CustomerBets[1].WinAmount);
            Assert.AreEqual(480, viewModel.CustomerBets[2].WinAmount);
            Assert.AreEqual(1600, viewModel.CustomerBets[3].WinAmount);
        }
Esempio n. 3
0
        public void TestCustomerUnusualSettledBets()
        {
            var viewModel = new UnusualSettledBetsViewModel();

            viewModel.RefreshData();
            viewModel.SelectedCustomer = 4;

            Assert.AreEqual(4, viewModel.CustomerBets.Count);
            Assert.AreEqual(1000, viewModel.CustomerBets[0].WinAmount);
            Assert.AreEqual(2000, viewModel.CustomerBets[1].WinAmount);
            Assert.AreEqual(480, viewModel.CustomerBets[2].WinAmount);
            Assert.AreEqual(1600, viewModel.CustomerBets[3].WinAmount);
        }
 public UnusualSettledBetsView()
 {
     InitializeComponent();
     DataContext = new UnusualSettledBetsViewModel();
     Loaded += UnusualSettledBets_Loaded;
 }
Esempio n. 5
0
 public UnusualSettledBetsView()
 {
     InitializeComponent();
     DataContext = new UnusualSettledBetsViewModel();
     Loaded     += UnusualSettledBets_Loaded;
 }
Esempio n. 6
0
 public void TestUnusualSettledBets()
 {
     var viewModel = new UnusualSettledBetsViewModel();
     viewModel.RefreshData();
     Assert.IsNotNull(viewModel.CustomerBets);
     Assert.AreEqual(6, viewModel.Customers.Count);
     Assert.AreEqual(1, viewModel.SelectedCustomer);
     Assert.AreEqual(7, viewModel.CustomerBets.Count);
     Assert.AreEqual(250, viewModel.CustomerBets[0].WinAmount);
     Assert.AreEqual(60, viewModel.CustomerBets[1].WinAmount);
 }