Exemple #1
0
        public void Process(ProjectCreated @event)
        {
            var project = new Project
            {
                Id = @event.Id,
                NationalSociety     = _nationalSocieties.GetById(@event.NationalSocietyId),
                DataOwner           = _users.GetById(@event.DataOwnerId),
                Name                = @event.Name,
                SurveillanceContext = (ProjectSurveillanceContext)@event.SurveillanceContext
            };

            _projects.Insert(project);
        }
Exemple #2
0
        public void Process(ProjectCreated @event)
        {
            var project = new Project
            {
                Id = @event.Id,
                NationalSociety     = _nationalSocieties.GetById(@event.NationalSocietyId),
                DataOwner           = _users.GetById(@event.DataOwnerId),
                Name                = @event.Name,
                SurveillanceContext = (ProjectSurveillanceContext)@event.SurveillanceContext,
                HealthRisks         = new ProjectHealthRisk[0],
                DataVerifiers       = new User[0],
                SmsProxy            = ""
            };

            _projects.Insert(project);
        }