public virtual UnitMeasure MapBOToEF(
            BOUnitMeasure bo)
        {
            UnitMeasure efUnitMeasure = new UnitMeasure();

            efUnitMeasure.SetProperties(
                bo.ModifiedDate,
                bo.Name,
                bo.UnitMeasureCode);
            return(efUnitMeasure);
        }
        public void MapEFToBO()
        {
            var         mapper = new DALUnitMeasureMapper();
            UnitMeasure entity = new UnitMeasure();

            entity.SetProperties(DateTime.Parse("1/1/1987 12:00:00 AM"), "A", "A");

            BOUnitMeasure response = mapper.MapEFToBO(entity);

            response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.Name.Should().Be("A");
            response.UnitMeasureCode.Should().Be("A");
        }
        public void MapEFToBOList()
        {
            var         mapper = new DALUnitMeasureMapper();
            UnitMeasure entity = new UnitMeasure();

            entity.SetProperties(DateTime.Parse("1/1/1987 12:00:00 AM"), "A", "A");

            List <BOUnitMeasure> response = mapper.MapEFToBO(new List <UnitMeasure>()
            {
                entity
            });

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