Exemplo n.º 1
0
        public void Process(DataCollectorRegistered @event)
        {
            var dataCollector = _dataCollectors.GetById(@event.Id);

            if (dataCollector == null)
            {
                dataCollector = new DataCollector {
                    Id = @event.Id
                };
                _dataCollectors.Create(dataCollector);
            }
            else
            {
                //TODO: Update volunteer properties
                _dataCollectors.Update(dataCollector);
            }
        }