Exemple #1
0
        public Workplace CreateWorkplace(string name, string companyname, string description,  Collection<Activity> activities, Surveytype surveytype, Person evaluatingPerson, Collection<Assessment> assessments )
        {
            return new Workplace {
                                    Name=name,
                                    NameCompany=companyname,
                                    Description=description,

                                    Activities = activities,
                                    SurveyType = surveytype,
                                    Assessments = assessments
                                };
        }
Exemple #2
0
 public Assessment CreateAssessment(DateTime date, int status, Person person, List<Threat> threat)
 {
     return new Assessment {AssessmentDate = date, Status = status, EvaluatingPerson = person, Threats = threat};
 }