Example #1
0
        public Car CreateCar(Company company, Engine engine, string name, int year, int countOfWheel)
        {
            var res = new Car(company, engine, name, year, countOfWheel);

            CarCreatedEvent?.Invoke(res);
            return(res);
        }
Example #2
0
 public void Apply(CarCreatedEvent aggregateEvent)
 {
 }