public void MapModelToEntity()
        {
            var mapper = new DALVoteTypeMapper();
            ApiVoteTypeServerRequestModel model = new ApiVoteTypeServerRequestModel();

            model.SetProperties("A");
            VoteType response = mapper.MapModelToEntity(1, model);

            response.Name.Should().Be("A");
        }
        public void MapEntityToModel()
        {
            var      mapper = new DALVoteTypeMapper();
            VoteType item   = new VoteType();

            item.SetProperties(1, "A");
            ApiVoteTypeServerResponseModel response = mapper.MapEntityToModel(item);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
        public void MapEntityToModelList()
        {
            var      mapper = new DALVoteTypeMapper();
            VoteType item   = new VoteType();

            item.SetProperties(1, "A");
            List <ApiVoteTypeServerResponseModel> response = mapper.MapEntityToModel(new List <VoteType>()
            {
                { item }
            });

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