private void SetUpViolationCode() { List <ViolationCode> violationCodeList = new List <ViolationCode>(); _agencyViolationCode = new ViolationCode(); _agencyViolationCode = _agencyViolationCode.CreateUcrCode(Guid.Empty, 123, "code", "violationDescription", true, "ucrcode", "ucrCategory", "statutecode", "statutedescription", "violationhierarchy", "type", "leveldegree", "statecode", "nciccode", null, null, true, true, false, true, true, true, "statutedefinition", new CodeValue("code", "description")); violationCodeList.Add(_agencyViolationCode); _unitOfWorkAdmin.Setup(mock => mock.GetEntityQuery <ViolationCode>(It.IsAny <TrackingMode>())) .Returns(violationCodeList.AsQueryable()); }