public void AddDebtWithParameters(DebtCreator debt) { new DebtSteps().CreateDebt(debt); Debt expectedDebt = Transformations.GetDebtBasedOnDebtCreator(debt); ScenarioContext.Set(expectedDebt, ExpectedDebt); Logger.Info($"\nDebt created with the following properties. " + $"{PropertiesDescriber.GetObjectProperties(expectedDebt)}"); }
internal Debt GetDebtBasedOnDebtCreator(DebtCreator creator) { return(new Debt { id = new DebtSteps().LastDebtId, amount = creator.amount, monthlyPercent = creator.monthlyPercent, studentId = creator.studentId }); }