예제 #1
0
 public PlaceBottle(Bottle bottle, string aisle, int row, int column)
 {
     _bottle = bottle;
     _aisle = aisle;
     _row = row;
     _column = column;
 }
예제 #2
0
 public BottlePlaced(Bottle bottle, string aisle, int row, int column)
 {
     Bottle = bottle;
     Aisle = aisle;
     Row = row;
     Column = column;
 }
예제 #3
0
 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;
 }
예제 #4
0
파일: PlaceDTO.cs 프로젝트: bolthar/vinskap
        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;
        }
예제 #5
0
파일: Rating.cs 프로젝트: bolthar/vinskap
 public Rating(Bottle bottle, int score, DateTime addedAt)
 {
     Bottle = bottle;
     Score = score;
     AddedAt = addedAt;
 }
예제 #6
0
 public RateBottle(Bottle bottle, int score)
 {
     _bottle = bottle;
     _score = score;
 }
예제 #7
0
 public BottleOpened(Bottle bottle)
 {
     Bottle = bottle;
 }
예제 #8
0
 public CreateBottle(Bottle bottle)
 {
     _bottle = bottle;
 }
예제 #9
0
 public BottleCreated(Bottle bottle)
 {
     Bottle = bottle;
 }
예제 #10
0
 public OpenBottle(Bottle bottle)
 {
     _bottle = bottle;
 }
예제 #11
0
 public static RatedBottleDTO From(Bottle bottle, double? score)
 {
     return new RatedBottleDTO { Bottle = BottleDTO.From(bottle), Score = score };
 }