public void CanPayInAmount_GivenPayInLimitIsExceeded_ReturnFailedResult() { var sut = new AccountBuilder().WithPaidIn(Account.PayInLimit).Build(); var result = sut.CanPayInAmount(0.01m); Assert.False(result.Success); }
public void CanPayInAmount_GivenValidAmount_ReturnSuccessfulResult() { var sut = new AccountBuilder().WithPaidIn(Account.PayInLimit - 0.01m).Build(); var result = sut.CanPayInAmount(0.01m); Assert.True(result.Success); }
public void CanPayInAmount_GivenAmountLessThanZero_ReturnFailedResult() { var sut = new AccountBuilder().Build(); var result = sut.CanPayInAmount(-0.01m); Assert.False(result.Success); }