Exemplo n.º 1
0
 public Bottle(Guid guid, Wine wine, int year, double? price, DateTime addedAt)
 {
     Guid = guid;
     Wine = wine;
     Year = year;
     Price = price;
     AddedAt = addedAt;
 }
Exemplo n.º 2
0
 public static WineDTO From(Wine wine)
 {
     var dto = new WineDTO();
     dto.Name = wine.Name;
     dto.Kind = KindDTO.From(wine.Kind);
     dto.Producer = ProducerDTO.From(wine.Producer);
     dto.Alcohol = wine.Alcohol;
     return dto;
 }
Exemplo n.º 3
0
 public WineCreated(Wine wine)
 {
     Wine = wine;
 }