Exemplo n.º 1
0
        public virtual ApiPostTypesResponseModel MapBOToModel(
            BOPostTypes boPostTypes)
        {
            var model = new ApiPostTypesResponseModel();

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

            return(model);
        }
Exemplo n.º 2
0
        public void MapResponseToRequest()
        {
            var mapper = new ApiPostTypesModelMapper();
            var model  = new ApiPostTypesResponseModel();

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

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