public void TotalValue_WhenValidCreditCreated_ShouldBeAddedInterestValue() { _sut = new ConsignedCredit(100, 5, DateTime.Now.AddDays(15).Date); _sut.TotalValue.ShouldBe(101); }
public void InterestValue_WhenValidCreditCreated_ShouldBePercentageOfValue() { _sut = new ConsignedCredit(100, 5, DateTime.Now.AddDays(15).Date); _sut.InterestValue.ShouldBe(1); }
public void Validate_WhenCreditCreated(decimal value, int qtdInstallments, DateTime firstDueDate, bool expectedStatus) { _sut = new ConsignedCredit(value, qtdInstallments, firstDueDate); _sut.IsApproved.ShouldBe(expectedStatus); }