Exemplo n.º 1
0
        public void MapEFToBO()
        {
            var      mapper = new DALVoteTypeMapper();
            VoteType entity = new VoteType();

            entity.SetProperties(1, "A");

            BOVoteType response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
Exemplo n.º 2
0
        public void MapEFToBOList()
        {
            var      mapper = new DALVoteTypeMapper();
            VoteType entity = new VoteType();

            entity.SetProperties(1, "A");

            List <BOVoteType> response = mapper.MapEFToBO(new List <VoteType>()
            {
                entity
            });

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