Ejemplo n.º 1
0
 private void DTOObjectsIntitalization()
 {
     _agencyId                                                    = Guid.NewGuid();
     _agencyId                                                    = Guid.NewGuid();
     _identityId                                                  = Guid.NewGuid();
     _citationSummaryDetails                                      = new CitationSummaryDetails();
     _citationEventDetails                                        = new CitationEventDetails();
     _citationNarrativeDetails                                    = new CitationNarrativeDetails();
     _citationOfficerDetails                                      = new CitationOfficerDetails();
     _citationVehicleDetails                                      = new CitationVehicleDetails();
     _citationPersonOtherDetails                                  = new CitationPersonOtherDetails();
     _citationAlcoholDrugTestDetails                              = new CitationAlcoholDrugTestDetails();
     _citationChargeDetails                                       = new CitationChargeDetails();
     _citationOrganizationDetails                                 = new CitationOrganizationDetails();
     _citationPersonSubjectDetails                                = new CitationPersonSubjectDetails();
     _citationFeesPaymentsDetails                                 = new CitationFeesPaymentsDetails();
     _citationSummaryDetails.Id                                   = _citationEventDetails.Id = _citationNarrativeDetails.Id =
         _citationOfficerDetails.Id                               =
             _citationVehicleDetails.Id                           =
                 _citationPersonOtherDetails.Id                   =
                     _citationAlcoholDrugTestDetails.Id           =
                         _citationChargeDetails.Id                =
                             _citationOrganizationDetails.Id      =
                                 _citationPersonSubjectDetails.Id = _citationFeesPaymentsDetails.Id = Guid.NewGuid();
 }
Ejemplo n.º 2
0
        public Guid CreateCitationNarrative(Guid citationId, CitationNarrativeDetails details)
        {
            var citationNarrative = CreateSummaryEntity(citationId, details,
                                                        (agency, id) => new PublicSafetyNarrative(IdentityId, agency, id),
                                                        (summary, narrative) => summary.Narratives.Add(narrative));

            return(citationNarrative.Id);
        }
 public void UpdateNarrative(CitationNarrativeDetails section)
 {
     _citationSummaryCommandService.UpdateCitationNarrative(section);
 }
        public CitationNarrativeDetails CreateNarrative(Guid id, CitationNarrativeDetails section)
        {
            section.Id = _citationSummaryCommandService.CreateCitationNarrative(id, section);

            return(section);
        }
Ejemplo n.º 5
0
 public void UpdateCitationNarrative(CitationNarrativeDetails details)
 {
     Update <PublicSafetyNarrative, CitationNarrativeDetails>(details);
 }