public void CreateFormattedAmount()
        {
            var money = new Money(3000m);

            Assert.AreEqual("3,000.00", money.FormattedAmount(_formatProvider));
        }
Esempio n. 2
0
 protected bool Equals(Money other)
 {
     return _amount == other._amount;
 }
 public Transaction(decimal amount, DateTime date)
 {
     _money = new Money(amount);
     _date = date;
 }