public PlaceBottle(Bottle bottle, string aisle, int row, int column) { _bottle = bottle; _aisle = aisle; _row = row; _column = column; }
public BottlePlaced(Bottle bottle, string aisle, int row, int column) { Bottle = bottle; Aisle = aisle; Row = row; Column = column; }
public static BottleDTO From(Bottle bottle) { var dto = new BottleDTO(); dto.Guid = bottle.Guid; dto.Wine = WineDTO.From(bottle.Wine); dto.Year = bottle.Year; dto.Price = bottle.Price; dto.AddedAt = bottle.AddedAt; return dto; }
public static PlaceDTO Create(int row, int column, string aisle, Bottle bottle, double? score) { var place = new PlaceDTO(); place.Row = row; place.Column = column; place.Aisle = aisle; if (bottle != null) place.Bottle = RatedBottleDTO.From(bottle, score); return place; }
public Rating(Bottle bottle, int score, DateTime addedAt) { Bottle = bottle; Score = score; AddedAt = addedAt; }
public RateBottle(Bottle bottle, int score) { _bottle = bottle; _score = score; }
public BottleOpened(Bottle bottle) { Bottle = bottle; }
public CreateBottle(Bottle bottle) { _bottle = bottle; }
public BottleCreated(Bottle bottle) { Bottle = bottle; }
public OpenBottle(Bottle bottle) { _bottle = bottle; }
public static RatedBottleDTO From(Bottle bottle, double? score) { return new RatedBottleDTO { Bottle = BottleDTO.From(bottle), Score = score }; }