Exemple #1
0
        public void HasTotalTransactionNotZeroCase1002Test()
        {
            BaseController.SelectedBettery = null;
            bool expected = false;
            bool actual   = GetBatteriesController.HasTotalTransactionNotZero();

            Assert.AreEqual(expected, actual);
        }
Exemple #2
0
        public void HasTotalTransactionNotZeroCase1001Test()
        {
            BaseController.SelectedBettery = new BetteryVend
            {
                TotalAmount = 9.99M
            };
            bool expected = true;
            bool actual   = GetBatteriesController.HasTotalTransactionNotZero();

            Assert.AreEqual(expected, actual);
        }
Exemple #3
0
        /// <summary>
        /// Loads this instance.
        /// </summary>
        public void Load(int aaCartridge)
        {
            Message.Text = string.Format(Constants.Messages.BetteriesReturned, aaCartridge);

            NoButton.IsEnabled = GetBatteriesController.HasTotalTransactionNotZero();
        }