public void BalanceShouldReturn100WhenBankAccountIdIs1() { // Arrange var logic = new BDD_Demo_Lib.BankAccountLogic(_context); // Act decimal balance = logic.GetBalance(1); // Assert balance.Should().Be(100); }
public void BalanceShouldReturnExceptionWhenBankAccountIdNotFound() { // Arrange var logic = new BDD_Demo_Lib.BankAccountLogic(_context); // Act Action act = () => logic.GetBalance(4); // Assert act.Should().Throw <System.NullReferenceException>(); }