public virtual ApiVehicleOfficerServerRequestModel MapServerResponseToRequest( ApiVehicleOfficerServerResponseModel response) { var request = new ApiVehicleOfficerServerRequestModel(); request.SetProperties( response.OfficerId, response.VehicleId); return(request); }
public void MapModelToEntity() { var mapper = new DALVehicleOfficerMapper(); ApiVehicleOfficerServerRequestModel model = new ApiVehicleOfficerServerRequestModel(); model.SetProperties(1, 1); VehicleOfficer response = mapper.MapModelToEntity(1, model); response.OfficerId.Should().Be(1); response.VehicleId.Should().Be(1); }