示例#1
0
        private void Handle(NewVehicle @event)
        {
            if (this.Registration != null)
            {
                throw new RuntimeException("Event processed twice!");
            }

            this.Registration = new Registration(@event.RegistrationNumber);
        }
示例#2
0
        private void Handle(NewVehicle @event)
        {
            if (this.Registration != null)
            {
                throw new RuntimeException("Event processed twice!");
            }

            this.Registration = new Registration(@event.RegistrationNumber);
        }