public virtual ApiCountryResponseModel MapBOToModel( BOCountry boCountry) { var model = new ApiCountryResponseModel(); model.SetProperties(boCountry.Id, boCountry.Name); return(model); }
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"); }