Browse files

minor E16 comments

  • Loading branch information...
1 parent f10a1b9 commit 1e5356358a35bfdf92e2b0f4beba150b5067d82e Kerry Street committed Dec 2, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 E016-value-objects/sample-csharp/CurrencyAmount.cs
View
11 E016-value-objects/sample-csharp/CurrencyAmount.cs
@@ -21,10 +21,13 @@ public enum CurrencyType
}
/// <summary>
- /// Decimal that also has currency type assotiated. It is used
- /// for enforcing logical consistency within the billing.
+ /// This is the CurrencyAmount Value Object that was mentioned by Rinat in BTW Episode 16.
+ /// Value Objects can often be the "nouns" (in contrast to message "verbs") in the sentences of our ubiquitous language.
+ /// The nouns are not actions, they are something that is part of the language.
+ /// It is a decimal that also has a currency type assotiated with it. It is used
+ /// for enforcing logical consistency within the billing system.
///
- /// We want to reduce chances of messing up by mixing different
+ /// We use a Value Objedct here to reduce the chances of messing up by mixing different
/// currencies together.
/// </summary>
[DataContract(Namespace = "Lokad.Core")]
@@ -198,7 +201,7 @@ public CurrencyAmount Round(int decimals)
}
/// <summary>
- /// Converts this aurrency amount by applying the specified
+ /// Converts this currency amount by applying the specified
/// transformation function to the amount and returning new result instance.
/// </summary>
/// <param name="conversion">The conversion.</param>

0 comments on commit 1e53563

Please sign in to comment.