public virtual ApiUnitOfficerServerRequestModel MapServerResponseToRequest( ApiUnitOfficerServerResponseModel response) { var request = new ApiUnitOfficerServerRequestModel(); request.SetProperties( response.OfficerId, response.UnitId); return(request); }
public void MapModelToEntity() { var mapper = new DALUnitOfficerMapper(); ApiUnitOfficerServerRequestModel model = new ApiUnitOfficerServerRequestModel(); model.SetProperties(1, 1); UnitOfficer response = mapper.MapModelToEntity(1, model); response.OfficerId.Should().Be(1); response.UnitId.Should().Be(1); }