Ejemplo n.º 1
0
        public virtual ApiTeacherTeacherSkillServerRequestModel MapServerResponseToRequest(
            ApiTeacherTeacherSkillServerResponseModel response)
        {
            var request = new ApiTeacherTeacherSkillServerRequestModel();

            request.SetProperties(
                response.TeacherId,
                response.TeacherSkillId);
            return(request);
        }
        public void MapModelToEntity()
        {
            var mapper = new DALTeacherTeacherSkillMapper();
            ApiTeacherTeacherSkillServerRequestModel model = new ApiTeacherTeacherSkillServerRequestModel();

            model.SetProperties(1, 1);
            TeacherTeacherSkill response = mapper.MapModelToEntity(1, model);

            response.TeacherId.Should().Be(1);
            response.TeacherSkillId.Should().Be(1);
        }