예제 #1
0
        public async Task LoadViewModelHistory_ValidTipHistory_ListOfTipHistoryTransactionsInDecendingOrderBySaved()
        {
            var myTipHistoryViewModel = new TipHistoryPageViewModel(myTipDatabase);

            await myTipHistoryViewModel.LoadTipHistory();

            Assert.AreEqual(2, myTipHistoryViewModel.TipCalcTransactions[0].Id);
        }
 public TipHistoryPage()
 {
     InitializeComponent();
     On <Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true);
     VM             = new TipHistoryPageViewModel(_tipDatabase);
     BindingContext = VM;
     VM.LoadTipHistory();
 }
예제 #3
0
        public async Task LoadViewModelHistory_ValidTipHistory_ListOfTipHistoryTransactions()
        {
            var myTipHistoryViewModel = new TipHistoryPageViewModel(myTipDatabase);

            await myTipHistoryViewModel.LoadTipHistory();

            Assert.IsNotNull(myTipHistoryViewModel.TipCalcTransactions);
            Assert.IsTrue(myTipHistoryViewModel.TipCalcTransactions.Count > 0);
        }