Exemplo n.º 1
0
        public Guid CreateIncidentPersonSuspect(Guid incidentId, IncidentPersonSuspectDetails details)
        {
            var suspect = CreateSummaryEntity(incidentId, details,
                                              (agency, entityId) => new IncidentPersonSuspect(IdentityId, agency, entityId),
                                              (incidentSummary, personSuspect) => incidentSummary.People.Add(personSuspect));

            return(suspect.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();
        }
Exemplo n.º 3
0
        public IncidentPersonSuspectDetails CreatePersonSuspect(Guid id, IncidentPersonSuspectDetails section)
        {
            section.Id = _incidentReportCommandService.CreateIncidentPersonSuspect(id, section);

            return(section);
        }
Exemplo n.º 4
0
 public void UpdatePersonSuspect(IncidentPersonSuspectDetails section)
 {
     _incidentReportCommandService.UpdateIncidentPersonSuspect(section);
 }
Exemplo n.º 5
0
 public void UpdateIncidentPersonSuspect(IncidentPersonSuspectDetails details)
 {
     Update <IncidentPersonSuspect, IncidentPersonSuspectDetails>(details);
 }