Esempio n. 1
0
 private void SetUpViolationCode()
 {
     _violationCodeList = new List <AggregatesAgency.ViolationCode>();
     _violationCode     = new AggregatesAgency.ViolationCode();
     _violationCode     = _violationCode.CreateUcrCode(Guid.Empty, 123, "code", "violationDescription", true, "ucrcode", "ucrCategory", "statutecode",
                                                       "statutedescription", "violationhierarchy", "type", "leveldegree", "statecode", "nciccode", null, null, false, true, true, true, true, true,
                                                       "statutedefinition", new CodeValue("code", "description"));
     _violationCodeList.Add(_violationCode);
     _unitOfWorkAdmin.Setup(
         item => item.GetEntityQuery <AggregatesAgency.ViolationCode>(It.IsAny <TrackingMode>()))
     .Returns(_violationCodeList.AsQueryable());
 }
Esempio n. 2
0
        public ViolationCode CreateUcrCode(Guid agencyId, long classicId, string code, string violationDescription, bool reportable, string ucrCode,
                                           string ucrCategory, string statuteCode, string statuteDescription, string violationHierarchy, string type, string levelOrDegree,
                                           string stateCode, string ncicCode, DateTime?effectiveDate, DateTime?repealDate, bool inactive, bool incident, bool citation,
                                           bool arrest, bool warrant, bool jail, string statuteDefinition, CodeValue filter)
        {
            var violationCode = new ViolationCode(agencyId, classicId, code, violationDescription, reportable, ucrCode,
                                                  ucrCategory, statuteCode, statuteDescription, violationHierarchy, type, levelOrDegree,
                                                  stateCode, ncicCode, effectiveDate, repealDate, inactive, incident, citation,
                                                  arrest, warrant, jail, statuteDefinition, filter);

            return(violationCode);
        }