Esempio n. 1
0
        public Guid CreateIncidentPersonOther(Guid incidentId, IncidentPersonOtherDetails details)
        {
            var person = CreateSummaryEntity(incidentId, details,
                                             (agency, id) => new PublicSafetyPerson(IdentityId, agency, id),
                                             (summary, other) => summary.People.Add(other));

            return(person.Id);
        }
        private void DTOObjectsIntitalization()
        {
            _agencyId                               = Guid.NewGuid();
            _agencyId                               = Guid.NewGuid();
            _identityId                             = Guid.NewGuid();
            _incidentSummaryDetails                 = new IncidentSummaryDetails();
            _incidentEventDetails                   = new IncidentEventDetails();
            _incidentNarrativeDetails               = new IncidentNarrativeDetails();
            _incidentOfficerDetails                 = new IncidentOfficerDetails();
            _incidentVehicleDetails                 = new IncidentVehicleDetails();
            _incidentPersonOtherDetails             = new IncidentPersonOtherDetails();
            _incidentDrugDetails                    = new IncidentDrugDetails();
            _incidentGunDetails                     = new IncidentGunDetails();
            _incidentOffenseDetails                 = new IncidentOffenseDetails();
            _incidentOfficerInvolvedShootingDetails = new IncidentOfficerInvolvedShootingDetails();
            _incidentPersonVictimDetails            = new IncidentPersonVictimDetails();
            _incidentPersonSuspectDetails           = new IncidentPersonSuspectDetails();
            _incidentPropertyDetails                = new IncidentPropertyDetails();

            _incidentOrganizationDetails = new IncidentOrganizationDetails();

            _incidentSummaryDetails.Id                                          =
                _incidentEventDetails.Id                                        =
                    _incidentNarrativeDetails.Id                                =
                        _incidentOfficerDetails.Id                              =
                            _incidentVehicleDetails.Id                          =
                                _incidentPersonOtherDetails.Id                  =
                                    _incidentOrganizationDetails.Id             =
                                        _incidentPropertyDetails.Id             =
                                            _incidentPersonSuspectDetails.Id    =
                                                _incidentPersonVictimDetails.Id =
                                                    _incidentDrugDetails.Id     =
                                                        _incidentOfficerInvolvedShootingDetails.Id =
                                                            _incidentGunDetails.Id             =
                                                                _incidentOffenseDetails.Id     =
                                                                    _incidentOffenseDetails.Id = Guid.NewGuid();
        }
Esempio n. 3
0
        public IncidentPersonOtherDetails CreatePersonOther(Guid id, IncidentPersonOtherDetails section)
        {
            section.Id = _incidentReportCommandService.CreateIncidentPersonOther(id, section);

            return(section);
        }
Esempio n. 4
0
 public void UpdatePersonOther(IncidentPersonOtherDetails section)
 {
     _incidentReportCommandService.UpdateIncidentPersonOther(section);
 }
Esempio n. 5
0
 public void UpdateIncidentPersonOther(IncidentPersonOtherDetails details)
 {
     Update <PublicSafetyPerson, IncidentPersonOtherDetails>(details);
 }