Пример #1
0
        public virtual ApiLessonXStudentResponseModel MapBOToModel(
            BOLessonXStudent boLessonXStudent)
        {
            var model = new ApiLessonXStudentResponseModel();

            model.SetProperties(boLessonXStudent.Id, boLessonXStudent.LessonId, boLessonXStudent.StudentId);

            return(model);
        }
Пример #2
0
        public void MapResponseToRequest()
        {
            var mapper = new ApiLessonXStudentModelMapper();
            var model  = new ApiLessonXStudentResponseModel();

            model.SetProperties(1, 1, 1);
            ApiLessonXStudentRequestModel response = mapper.MapResponseToRequest(model);

            response.LessonId.Should().Be(1);
            response.StudentId.Should().Be(1);
        }