예제 #1
0
 protected void OnCargoCreated(CargoCreatedEvent e)
 {
     _origin = e.Origin;
     _destination = e.Destination;
     _weight = e.Weight;
     _size = e.Size;
 }
예제 #2
0
        public Cargo(Guid id, string origin, string destination, float weight, float size)
            : base(id)
        {
            var e = new CargoCreatedEvent(id, origin, destination, weight, size);

            ApplyEvent(e);
        }