public void HasTotalTransactionNotZeroCase1002Test() { BaseController.SelectedBettery = null; bool expected = false; bool actual = GetBatteriesController.HasTotalTransactionNotZero(); Assert.AreEqual(expected, actual); }
public void GetMaxAaaProductTest() { int actual; actual = GetBatteriesController.GetMaxAaaProduct() ?? 0; bool result = actual <= Constants.BetteryProduct.AaaMax; Assert.IsTrue(result); }
public void HasTotalTransactionNotZeroCase1001Test() { BaseController.SelectedBettery = new BetteryVend { TotalAmount = 9.99M }; bool expected = true; bool actual = GetBatteriesController.HasTotalTransactionNotZero(); Assert.AreEqual(expected, actual); }
/// <summary> /// Loads this instance. /// </summary> public void Load(int aaCartridge) { Message.Text = string.Format(Constants.Messages.BetteriesReturned, aaCartridge); NoButton.IsEnabled = GetBatteriesController.HasTotalTransactionNotZero(); }