Exemple #1
0
        public void GetAllIsSummingCorrectly()
        {
            //arrange
            _dbGateway.Setup(_ => _.GetAllAccounts()).Returns(new List <Account>()
            {
                new Account()
                {
                    Balance = 1,
                },
                new Account()
                {
                    Balance = 2,
                },
                new Account()
                {
                    Balance = 3,
                }
            });

            //act
            var sum = _sut.AdminGetBankTotalWorth();

            sum.Should().Be(6);
        }
Exemple #2
0
 public IActionResult GetBankWorth()
 {
     return(Ok(_bankAccountApplicationService.AdminGetBankTotalWorth()));
 }