예제 #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;
 }