Ejemplo n.º 1
0
        public Guid CreateIncidentVehicle(Guid incidentId, IncidentVehicleDetails details)
        {
            var vehicle = CreateSummaryEntity(incidentId, details,
                                              (agency, id) => new PublicSafetyVehicle(IdentityId, agency, id),
                                              (summary, incidentVehicle) => summary.Vehicles.Add(incidentVehicle));

            return(vehicle.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();
        }
Ejemplo n.º 3
0
 public void UpdateVehicle(IncidentVehicleDetails section)
 {
     _incidentReportCommandService.UpdateIncidentVehicle(section);
 }
Ejemplo n.º 4
0
        public IncidentVehicleDetails CreateVehicle(Guid id, IncidentVehicleDetails section)
        {
            section.Id = _incidentReportCommandService.CreateIncidentVehicle(id, section);

            return(section);
        }
Ejemplo n.º 5
0
 public void UpdateIncidentVehicle(IncidentVehicleDetails details)
 {
     Update <PublicSafetyVehicle, IncidentVehicleDetails>(details);
 }