public virtual ApiCountryResponseModel MapBOToModel(
            BOCountry boCountry)
        {
            var model = new ApiCountryResponseModel();

            model.SetProperties(boCountry.Id, boCountry.Name);

            return(model);
        }
Пример #2
0
        public void MapResponseToRequest()
        {
            var mapper = new ApiCountryModelMapper();
            var model  = new ApiCountryResponseModel();

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

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