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

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

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