Beispiel #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();
 }
Beispiel #2
0
        public Guid CreateCitationCharge(Guid citationId, CitationChargeDetails details)
        {
            var citationCharge = CreateSummaryEntity(citationId, details,
                                                     (agency, id) => new PublicSafetyOffense(IdentityId, agency, id),
                                                     (summary, charge) => summary.Offenses.Add(charge));

            return(citationCharge.Id);
        }
        public CitationChargeDetails CreateCharge(Guid id, CitationChargeDetails section)
        {
            section.Id = _citationSummaryCommandService.CreateCitationCharge(id, section);

            return(section);
        }
 public void UpdateCharges(CitationChargeDetails section)
 {
     _citationSummaryCommandService.UpdateCitationCharge(section);
 }
Beispiel #5
0
 public void UpdateCitationCharge(CitationChargeDetails details)
 {
     Update <PublicSafetyOffense, CitationChargeDetails>(details);
 }