Beispiel #1
0
 public static CarItemState.Result Create(string id, CarId carId, string desc) =>
 new CarItemState(new CarItemId(id), carId)
 .ApplyEvent(new CarItemAddedEvent(carId, new CarItemId(id), desc));
Beispiel #2
0
 public CarItemAddedEvent(CarId carId, CarItemId carItemId, string desciption)
 {
     CarId      = carId;
     CarItemId  = carItemId;
     Desciption = desciption;
 }
Beispiel #3
0
 internal CarItemState(CarItemId id, CarId carId) : this()
 {
     id.ThrowsIfNull(new ArgumentNullException(id));
     carId.ThrowsIfNull(new ArgumentNullException(carId));
 }