Ejemplo n.º 1
0
        public void TestGetCardBalance()
        {
            //Arrange
            const decimal balance = 100500;

            _cardProcessor.GetCardBalance().Returns(balance);
            //Act
            var result = _atMachine.GetCardBalance();

            //Assert
            _cardProcessor.Received(1).GetCardBalance();

            Assert.Equal(balance, result);
        }
Ejemplo n.º 2
0
 /// <summary>Retrieves the balance available on the card</summary>
 public decimal GetCardBalance()
 {
     return(_cardProcessor.GetCardBalance());
 }