public void Setup() { _loanSettings = new LoanSettings() { InterestRate = new decimal(0.05) }; }
private void XmReadGui() { XpLoanSettings = new LoanSettings(); { decimal t1; XmRead(out t1, XuHovedstol); XpLoanSettings.Lånebeøb = t1; } { int t1; XmRead(out t1, XuNumberOfPeriods); XpLoanSettings.Løbetid = t1; } { decimal t1; XmRead(out t1, XuRente); XpLoanSettings.PålydendeRente = t1 / 100m; } { decimal t1; XmRead(out t1, XuOmkostning); XpLoanSettings.Startomkostning = t1; } }
public void MyTestInitialize() { TestTarget = new CalculationServiceV1(); LoanSettings = new LoanSettings { Lånebeøb = 50000m, Løbetid = 5 * 12, PålydendeRente = 0.08m, Startomkostning = 500m }; ExpectedValue = new LoanCalculations { ÅOP = 0.08760m, Ydelse = 1013.82m, DebitorRente = 0.083m }; }
protected void Page_Load(object sender, EventArgs e) { if (false == IsPostBack) { // GET XpLoanCalculations = null; XpLoanSettings = new LoanSettings { Lånebeøb = 50000m, PålydendeRente = 0.08m, Startomkostning = 500m, Løbetid = 5 * 12 }; XmFillGui(); } else { // Post } }
public LoanInterestCalculator(LoanSettings loanSettings) { _loanSettings = loanSettings; }