Example #1
0
        public virtual ApiLinkTypeResponseModel MapBOToModel(
            BOLinkType boLinkType)
        {
            var model = new ApiLinkTypeResponseModel();

            model.SetProperties(boLinkType.Id, boLinkType.Type);

            return(model);
        }
Example #2
0
        public void MapResponseToRequest()
        {
            var mapper = new ApiLinkTypeModelMapper();
            var model  = new ApiLinkTypeResponseModel();

            model.SetProperties(1, "A");
            ApiLinkTypeRequestModel response = mapper.MapResponseToRequest(model);

            response.Type.Should().Be("A");
        }