private void DTOObjectsIntitalization()
        {
            _agencyId   = Guid.NewGuid();
            _agencyId   = Guid.NewGuid();
            _identityId = Guid.NewGuid();
            _otherEventSummaryDetails   = new OtherEventSummaryDetails();
            _otherEventEventDetails     = new OtherEventEventDetails();
            _otherEventNarrativeDetails = new OtherEventNarrativeDetails();
            _otherEventOfficerDetails   = new OtherEventOfficerDetails();
            _otherEventVehicleDetails   = new OtherEventVehicleDetails();
            _otherEventDrugDetails      = new OtherEventDrugDetails();
            _otherEventGunDetails       = new OtherEventGunDetails();
            _otherEventOffenseDetails   = new OtherEventOffenseDetails();
            _otherEventPropertyDetails  = new OtherEventPropertyDetails();

            _otherEventOrganizationDetails = new OtherEventOrganizationDetails();

            _otherEventSummaryDetails.Id                                         =
                _otherEventEventDetails.Id                                       =
                    _otherEventNarrativeDetails.Id                               =
                        _otherEventOfficerDetails.Id                             =
                            _otherEventVehicleDetails.Id                         =
                                _otherEventOrganizationDetails.Id                =
                                    _otherEventPropertyDetails.Id                =
                                        _otherEventDrugDetails.Id                =
                                            _otherEventGunDetails.Id             =
                                                _otherEventOffenseDetails.Id     =
                                                    _otherEventOffenseDetails.Id = Guid.NewGuid();
        }
        public Guid CreateOtherEventVehicle(Guid otherEventId, OtherEventVehicleDetails details)
        {
            var vehicle = CreateSummaryEntity(otherEventId, details,
                                              (agency, id) => new PublicSafetyVehicle(IdentityId, agency, id),
                                              (summary, otherEventVehicle) => summary.Vehicles.Add(otherEventVehicle));

            return(vehicle.Id);
        }
        public Guid CreateOtherEventVehicle(Guid otherEventId, OtherEventVehicleDetails details)
        {
            var vehicle = CreateReportEntity(otherEventId, details,
                                             (agency, id) => new PublicSafetyVehicle(IdentityId, agency, id),
                                             (report, otherEventVehicle) => report.Vehicles.Add(otherEventVehicle));

            return(vehicle.Id);
        }
 public void UpdateOtherEventVehicle(OtherEventVehicleDetails details)
 {
     Update <PublicSafetyVehicle, OtherEventVehicleDetails>(details);
 }
        public OtherEventVehicleDetails CreateVehicle(Guid id, OtherEventVehicleDetails section)
        {
            section.Id = _otherEventSummaryCommandService.CreateOtherEventVehicle(id, section);

            return(section);
        }
 public void UpdateVehicle(OtherEventVehicleDetails section)
 {
     _otherEventSummaryCommandService.UpdateOtherEventVehicle(section);
 }