Example #1
0
 // TODO: Use this in the service when creating an Arrestee.
 /// <summary>
 /// Attempts to add the specified Arrestee to the collection of People. If an Arrestee has already
 /// been specified, an exception is thrown.
 /// </summary>
 public void AddArrestee(ArrestArrestee arrestee)
 {
     if (Arrestee != null)
     {
         throw new Exception("An Arrestee already exists on this record.");
     }
     base.People.Add(arrestee);
 }
Example #2
0
        public void AddArrestee()
        {
            List <PublicSafetyPerson> lstPerson = new List <PublicSafetyPerson>();

            ArrestArrestee _person = new ArrestArrestee(Guid.NewGuid(), Guid.NewGuid(), Guid.NewGuid());

            _person.Email = "email";
            lstPerson.Add(_person);
            ReportDerived _report = new ReportDerived(Guid.NewGuid(), Guid.NewGuid(), Guid.NewGuid(), Guid.NewGuid(), ModuleType.Arrest, true);

            _arrestReport.People = lstPerson;
            ArrestArrestee obj = new ArrestArrestee(Guid.NewGuid(), Guid.NewGuid(), Guid.NewGuid());

            _arrestReport.AddArrestee(obj);
        }