public void Process(NationalSocietyCreated @event)
        {
            var nationalSociety = new NationalSociety()
            {
                Name = @event.Name,
                Id   = @event.Id
            };

            _nationalSocieties.Save(nationalSociety);
        }
Beispiel #2
0
        public void Process(NationalSocietyCreated @event)
        {
            var nationalSociety = new NationalSociety()
            {
                Id      = @event.Id,
                Name    = @event.Name,
                Country = @event.Country
            };

            _nationalSocieties.Save(nationalSociety);
        }
Beispiel #3
0
 public void Save(NationalSociety nationalSociety)
 {
     _collection.InsertOne(nationalSociety);
 }