Exemplo n.º 1
0
 public TransactionChain(List <Transaction> transactions, Money.Currencies currency,
                         Money currentAmount)
 {
     _transactions  = transactions;
     _currency      = currency;
     _currentAmount = currentAmount;
 }
        public async Task GivenMoneyWithValueAndCurrency_WhenConverted_ThenAQuantityValueShouldBeCreated()
        {
            const decimal          value    = 480;
            const Money.Currencies currency = Money.Currencies.USD;

            await Test(
                m =>
            {
                m.Value    = value;
                m.Currency = currency;
            },
                ValidateQuantity,
                new Quantity(value, currency.ToString(), CurrencyValueSet.CodeSystemUri));
        }
Exemplo n.º 3
0
 public TransactionChain(Money.Currencies currency)
 {
     this._currency = currency;
     _currentAmount = new(0, currency);
     _transactions  = new();
 }