public virtual VoteTypes MapBOToEF(
            BOVoteTypes bo)
        {
            VoteTypes efVoteTypes = new VoteTypes();

            efVoteTypes.SetProperties(
                bo.Id,
                bo.Name);
            return(efVoteTypes);
        }
        public void MapEFToBO()
        {
            var       mapper = new DALVoteTypesMapper();
            VoteTypes entity = new VoteTypes();

            entity.SetProperties(1, "A");

            BOVoteTypes response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
        public void MapEFToBOList()
        {
            var       mapper = new DALVoteTypesMapper();
            VoteTypes entity = new VoteTypes();

            entity.SetProperties(1, "A");

            List <BOVoteTypes> response = mapper.MapEFToBO(new List <VoteTypes>()
            {
                entity
            });

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