Esempio n. 1
0
 public static AssessmentItem MapFrom(Data.AssessmentItem assessmentItem)
 {
     return(new Models.AssessmentItem()
     {
         AssesmentId = assessmentItem.AssessmentId, CapabilityAchieved = assessmentItem.CapabilityAchieved, CapabilityId = assessmentItem.CapabiltyId
     });
 }
Esempio n. 2
0
        private Continuum.Core.Models.AssessmentItem CreateOpenAssessment()
        {
            Data.Team       team;
            Data.TeamMember teamMember;
            CreateTeamAndTeamMember(out team, out teamMember);

            var assessment = new Data.Assessment()
            {
                Team   = team,
                Status = new Data.AssessmentStatus()
                {
                    Value = "Open"
                },
                Id     = 1,
                TeamId = team.Id
            };

            var assessmentItem = new Data.AssessmentItem()
            {
                AssessmentId       = 1,
                CapabilityAchieved = false,
                CapabiltyId        = 1,
                Id           = 1,
                TeamMemberId = teamMember.Id
            };

            assessment.AssessmentItems.Add(assessmentItem);
            _mockContainer.Assessments.Add(assessment);

            return(new Core.Models.AssessmentItem()
            {
                AssesmentId = assessmentItem.Id,
                CapabilityAchieved = assessmentItem.CapabilityAchieved,
                CapabilityId = assessmentItem.CapabiltyId
            });
        }
        private Continuum.Core.Models.AssessmentItem CreateOpenAssessment()
        {
            Data.Team team;
            Data.TeamMember teamMember;
            CreateTeamAndTeamMember(out team, out teamMember);

            var assessment = new Data.Assessment()
            {
                Team = team,
                Status = new Data.AssessmentStatus(){ Value = "Open"},
                Id = 1,
                TeamId = team.Id
            };

            var assessmentItem = new Data.AssessmentItem()
            {
                AssessmentId = 1,
                CapabilityAchieved = false,
                CapabiltyId = 1,
                Id = 1,
                TeamMemberId = teamMember.Id
            };

            assessment.AssessmentItems.Add(assessmentItem);
            _mockContainer.Assessments.Add(assessment);

            return new Core.Models.AssessmentItem()
            {
                AssesmentId = assessmentItem.Id,
                CapabilityAchieved = assessmentItem.CapabilityAchieved,
                CapabilityId = assessmentItem.CapabiltyId
            };
        }