示例#1
0
        public void Consume(CarScrapped @event)
        {
            var carList = this.repository.Get(0);

            carList.RemoveAll(item => item.Registration == @event.Registration);
            this.repository.AddOrUpdate(0, carList);
        }
示例#2
0
 private void Handle(CarScrapped @event)
 {
     this.EndLifecycle();
 }