public void GetAdvicedCreditAmountTest() { var tariffProposalCalculator = new TariffProposalCalculator(); var result = tariffProposalCalculator.GetAdvicedCreditAmount(new ProductAgreement()); result.Value.CreditFeeOnObligoPercentage.Should().Be(2); result.Value.CreditFeePercentage.Should().Be(1); result.Value.AdvicedCreditFeePercentage.Should().Be(3); result.Value.AdvicedCreditFeeAmount.Should().Be(3); }
public void GetTariffProposalTest() { var calculator = new TariffProposalCalculator(); var pa = new ProductAgreement {ObligoAmount = 2}; var result = calculator.AdvicedBankGaranteeAmount(pa) & calculator.GetAdvicedCreditAmount(pa); result.Value.BankGaranteeOnObligoPercentage.Should().Be(2); result.Value.CreditFeeOnObligoPercentage.Should().Be(2); result.Value.AdvicedBankGaranteeAmount.Should().Be(6); result.Value.AdvicedCreditFeeAmount.Should().Be(5); }