This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Customer : DomainEntity | |
| { | |
| public decimal AccountBalance { get; private set; } | |
| public IReadOnlyList<Orders> Orders { get { return _orders.ToReadOnlyList();} } | |
| public string Name { get; private set; } | |
| protected Customer() {} | |
| public Customer(string name, decimal openingBalance) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Customer | |
| { | |
| public decimal AccountBalance { get; set; } | |
| public List<Orders> Orders { get; set; } | |
| public string Name { get; set; } | |
| public void AddMoney(decimal amountToAdd) | |
| { | |
| AccountBalance += amountToAdd | |
| } |
NewerOlder