play with storing valueobjects

This commit is contained in:
Claudiu Farcas
2022-10-18 00:03:51 +03:00
parent 80ccd22d9c
commit b31cbcc15d
36 changed files with 250 additions and 81 deletions
@@ -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;
}
}