public void MapModelToEntity()
        {
            var mapper = new DALLinkTypeMapper();
            ApiLinkTypeServerRequestModel model = new ApiLinkTypeServerRequestModel();

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

            response.RwType.Should().Be("A");
        }
        public void MapEntityToModel()
        {
            var      mapper = new DALLinkTypeMapper();
            LinkType item   = new LinkType();

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

            response.Id.Should().Be(1);
            response.RwType.Should().Be("A");
        }
        public void MapEntityToModelList()
        {
            var      mapper = new DALLinkTypeMapper();
            LinkType item   = new LinkType();

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

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