Exemplo n.º 1
0
        public void GetCurrentIncome_ShouldWork()
        {
            MockDataAccess   da    = new MockDataAccess();
            SodaMachineLogic logic = new SodaMachineLogic(da);

            var(_, expected, _) = da.MachineInfo;
            decimal actual = logic.GetCurrentIncome();

            Assert.Equal(expected, actual);
        }
Exemplo n.º 2
0
        public void GetCurrentIncome_ShouldWork()
        {
            decimal expectedIncome;
            decimal actualIncome;

            expectedIncome = mockDataAccess.MachineInfo.cashOnHand;
            actualIncome   = sodaMachineLogic.GetCurrentIncome();

            Assert.AreEqual(expectedIncome, actualIncome);
        }