mirror of
https://github.com/farcasclaudiu/PracticeCalendar.git
synced 2026-06-22 09:01:18 +03:00
play with storing valueobjects
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using PracticeCalendar.Domain.Common;
|
||||
|
||||
namespace PracticeCalendar.Domain.ValueObjects
|
||||
{
|
||||
public class Price : ValueObject
|
||||
{
|
||||
public static Price Empty = new Price();
|
||||
public static string DEFAULT_CURRENCY = "EUR";
|
||||
|
||||
public decimal Value { get; set; }
|
||||
public string Currency { get; set; } = Price.DEFAULT_CURRENCY;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user