Ejemplo n.º 1
0
        public void ReportInternalCount(Location location, Officer officerInCharge, int inmatesIn, int inmatesOut)
        {
            if (InternalCountLocationReports.Any(report => report.LocationId == location.Id))
                throw new InvalidOperationException("Count already reported for this location");

            InternalCountLocationReports.Add(new InternalCountLocationReport(location, officerInCharge, inmatesIn, inmatesOut));
        }
Ejemplo n.º 2
0
 public InternalCountLocationReport(Location location, Officer officerInCharge, int inmatesIn, int inmatesOut)
 {
     LocationId = location.Id;
     OfficerInChargeId = officerInCharge.Id;
     InmatesIn = inmatesIn;
     InmatesOut = inmatesOut;
     RosterCount = location.Roster.Count;
 }
Ejemplo n.º 3
0
        public ExternalCountLocationReport(Location location, Officer officerInCharge, IEnumerable<Inmate> inmates)
        {
            InmateIds = new List<string>();

            LocationId = location.Id;
            OfficerInChargeId = officerInCharge.Id;
            InmateIds = inmates.Select(inmate => inmate.Id).ToList();
        }
Ejemplo n.º 4
0
 public void ReportExternalCount(Location location, Officer officerInCharge, Inmate[] inmates)
 {
     ExternalCountLocationReports.Add(new ExternalCountLocationReport(location, officerInCharge, inmates));
 }
Ejemplo n.º 5
0
 public void ReportExternalCount(Location location, Officer officerInCharge, Inmate[] inmates)
 {
     ExternalCountLocationReports.Add(new ExternalCountLocationReport(location, officerInCharge, inmates));
 }