public virtual ApiProvinceServerRequestModel MapServerResponseToRequest( ApiProvinceServerResponseModel response) { var request = new ApiProvinceServerRequestModel(); request.SetProperties( response.CountryId, response.Name); return(request); }
public void MapModelToEntity() { var mapper = new DALProvinceMapper(); ApiProvinceServerRequestModel model = new ApiProvinceServerRequestModel(); model.SetProperties(1, "A"); Province response = mapper.MapModelToEntity(1, model); response.CountryId.Should().Be(1); response.Name.Should().Be("A"); }