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(); }
public async Task LoadViewModelHistory_ValidTipHistory_ListOfTipHistoryTransactions() { var myTipHistoryViewModel = new TipHistoryPageViewModel(myTipDatabase); await myTipHistoryViewModel.LoadTipHistory(); Assert.IsNotNull(myTipHistoryViewModel.TipCalcTransactions); Assert.IsTrue(myTipHistoryViewModel.TipCalcTransactions.Count > 0); }