Пример #1
0
        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)}");
        }
Пример #2
0
 internal Debt GetDebtBasedOnDebtCreator(DebtCreator creator)
 {
     return(new Debt
     {
         id = new DebtSteps().LastDebtId,
         amount = creator.amount,
         monthlyPercent = creator.monthlyPercent,
         studentId = creator.studentId
     });
 }