public void MapBOToModel() { var mapper = new BOLTeacherXTeacherSkillMapper(); BOTeacherXTeacherSkill bo = new BOTeacherXTeacherSkill(); bo.SetProperties(1, 1, 1); ApiTeacherXTeacherSkillResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be(1); response.TeacherId.Should().Be(1); response.TeacherSkillId.Should().Be(1); }
public void MapBOToEF() { var mapper = new DALTeacherXTeacherSkillMapper(); var bo = new BOTeacherXTeacherSkill(); bo.SetProperties(1, 1, 1); TeacherXTeacherSkill response = mapper.MapBOToEF(bo); response.Id.Should().Be(1); response.TeacherId.Should().Be(1); response.TeacherSkillId.Should().Be(1); }
public void MapBOToModelList() { var mapper = new BOLTeacherXTeacherSkillMapper(); BOTeacherXTeacherSkill bo = new BOTeacherXTeacherSkill(); bo.SetProperties(1, 1, 1); List <ApiTeacherXTeacherSkillResponseModel> response = mapper.MapBOToModel(new List <BOTeacherXTeacherSkill>() { { bo } }); response.Count.Should().Be(1); }