Exemple #1
0
        public void GetAdminBalance_Test()
        {
            //arrange
            decimal expected = -486m;
            //act
            decimal actual = AccountingLog.GetAdminBalance();

            //assert
            Assert.Equal(expected, actual);
        }
Exemple #2
0
        public decimal GetTotalBalance()
        {
            decimal balance = 0;

            try
            {
                balance = AccountingLog.GetAdminBalance();
            }
            catch (Exception)
            {
            }
            return(decimal.Round(balance, 0));
        }