public virtual ApiLocationServerRequestModel MapServerResponseToRequest( ApiLocationServerResponseModel response) { var request = new ApiLocationServerRequestModel(); request.SetProperties( response.GpsLat, response.GpsLong, response.LocationName); return(request); }
public void MapModelToEntity() { var mapper = new DALLocationMapper(); ApiLocationServerRequestModel model = new ApiLocationServerRequestModel(); model.SetProperties(1, 1, "A"); Location response = mapper.MapModelToEntity(1, model); response.GpsLat.Should().Be(1); response.GpsLong.Should().Be(1); response.LocationName.Should().Be("A"); }