示例#1
0
        public UcrCode CreateUcrCode(long classicId, string code, string ucrDescription, bool incident, bool arrest, bool inSummary,
                                     string offenseGroup, string ucrClass, string subClass, string crimePart)
        {
            var ucrCode = new UcrCode(classicId, code, ucrDescription, incident, arrest, inSummary, offenseGroup, ucrClass, subClass, crimePart);

            return(ucrCode);
        }
示例#2
0
 private void SetUpUcrCode()
 {
     _ucrCodeList = new List <AggregatesAgency.UcrCode>();
     _ucrCode     = new AggregatesAgency.UcrCode();
     _ucrCode     = _ucrCode.CreateUcrCode(321, "code", "ucrdescription", false, false, false, "offensegroup", "ucrclass", "subclass", "crimepart");
     _ucrCodeList.Add(_ucrCode);
     _unitOfWorkAdmin.Setup(mock => mock.GetEntityQuery <AggregatesAgency.UcrCode>(It.IsAny <TrackingMode>()))
     .Returns(_ucrCodeList.AsQueryable());
 }