Beispiel #1
0
        public void MapEFToBO()
        {
            var  mapper = new DALRateMapper();
            Rate entity = new Rate();

            entity.SetProperties(1m, 1, 1, 1);

            BORate response = mapper.MapEFToBO(entity);

            response.AmountPerMinute.Should().Be(1m);
            response.Id.Should().Be(1);
            response.TeacherId.Should().Be(1);
            response.TeacherSkillId.Should().Be(1);
        }
Beispiel #2
0
        public void MapEFToBOList()
        {
            var  mapper = new DALRateMapper();
            Rate entity = new Rate();

            entity.SetProperties(1m, 1, 1, 1);

            List <BORate> response = mapper.MapEFToBO(new List <Rate>()
            {
                entity
            });

            response.Count.Should().Be(1);
        }
Beispiel #3
0
        public void MapBOToEF()
        {
            var mapper = new DALRateMapper();
            var bo     = new BORate();

            bo.SetProperties(1, 1m, 1, 1);

            Rate response = mapper.MapBOToEF(bo);

            response.AmountPerMinute.Should().Be(1m);
            response.Id.Should().Be(1);
            response.TeacherId.Should().Be(1);
            response.TeacherSkillId.Should().Be(1);
        }