protected override void BecauseOf()
        {
            base.BecauseOf();

            _lineItemToAdd = ExpenseLineItem.create()
                .complete();

            Expense.AddLineItem(_lineItemToAdd);

            _expenseDto = Expense.ToDto();
            _expenseLineItemDto = _lineItemToAdd.ToDto(_expenseDto);
        }
Exemplo n.º 2
0
 public static void OutputExpenseLineItem(ExpenseLineItemDto expenseLineItemDto)
 {
     Console.WriteLine("{0} ${1}", expenseLineItemDto.Description, expenseLineItemDto.Amount);
 }