예제 #1
0
        public void TestCustomerRiskySeverityUnsettledBets()
        {
            var viewModel = new RiskyUnsettledBetsViewModel();
            viewModel.RefreshData();
            viewModel.SelectedCustomer = 4;

            Assert.AreEqual(4, viewModel.CustomerBets.Count);

            Assert.AreEqual(RiskSeverity.HighWonAmount, viewModel.CustomerBets[0].RiskyUnsettledBetSeverity);
            Assert.AreEqual(RiskSeverity.HighWonAmount, viewModel.CustomerBets[1].RiskyUnsettledBetSeverity);
            Assert.AreEqual(RiskSeverity.HighWonAmount, viewModel.CustomerBets[2].RiskyUnsettledBetSeverity);
            Assert.AreEqual(RiskSeverity.Risky, viewModel.CustomerBets[3].RiskyUnsettledBetSeverity);
        }
 public RiskyUnsettledBetsView()
 {
     InitializeComponent();
     DataContext = new RiskyUnsettledBetsViewModel();
     Loaded += UnusualSettledBets_Loaded;
 }
예제 #3
0
 public void TestRiskyUnsettledBets()
 {
     var viewModel = new RiskyUnsettledBetsViewModel();
     viewModel.RefreshData();
     Assert.IsNotNull(viewModel.CustomerBets);
     Assert.AreEqual(6, viewModel.Customers.Count);
     Assert.AreEqual(1, viewModel.SelectedCustomer);
     Assert.AreEqual(4, viewModel.CustomerBets.Count);
     Assert.AreEqual(500, viewModel.CustomerBets[0].WinAmount);
     Assert.AreEqual(5000, viewModel.CustomerBets[1].WinAmount);
 }