public void GetBankGaranteePercentageTest() { var calculator = new TariffProposalCalculator(); var result = calculator.AdvicedBankGaranteeAmount(new ProductAgreement { ObligoAmount = 2 }); result.Value.BankGaranteeOnObligoPercentage.Should().Be(2); result.Value.BankGaranteePercentage.Should().Be(1); result.Value.AdvicedBankGaranteePercentage.Should().Be(3); result.Value.AdvicedBankGaranteeAmount.Should().Be(6); }
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); }