Пример #1
0
        public void CreateFormattedAmount()
        {
            var money = new Money(3000m);

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