public void MapBOToModel()
        {
            var mapper          = new BOLStudentXFamilyMapper();
            BOStudentXFamily bo = new BOStudentXFamily();

            bo.SetProperties(1, 1, 1);
            ApiStudentXFamilyResponseModel response = mapper.MapBOToModel(bo);

            response.FamilyId.Should().Be(1);
            response.Id.Should().Be(1);
            response.StudentId.Should().Be(1);
        }
Exemple #2
0
        public void MapBOToEF()
        {
            var mapper = new DALStudentXFamilyMapper();
            var bo     = new BOStudentXFamily();

            bo.SetProperties(1, 1, 1);

            StudentXFamily response = mapper.MapBOToEF(bo);

            response.FamilyId.Should().Be(1);
            response.Id.Should().Be(1);
            response.StudentId.Should().Be(1);
        }
        public void MapBOToModelList()
        {
            var mapper          = new BOLStudentXFamilyMapper();
            BOStudentXFamily bo = new BOStudentXFamily();

            bo.SetProperties(1, 1, 1);
            List <ApiStudentXFamilyResponseModel> response = mapper.MapBOToModel(new List <BOStudentXFamily>()
            {
                { bo }
            });

            response.Count.Should().Be(1);
        }