public virtual ApiTeacherSkillServerRequestModel MapServerResponseToRequest( ApiTeacherSkillServerResponseModel response) { var request = new ApiTeacherSkillServerRequestModel(); request.SetProperties( response.Name); return(request); }
public void MapModelToEntity() { var mapper = new DALTeacherSkillMapper(); ApiTeacherSkillServerRequestModel model = new ApiTeacherSkillServerRequestModel(); model.SetProperties("A"); TeacherSkill response = mapper.MapModelToEntity(1, model); response.Name.Should().Be("A"); }