public virtual OtherTransport MapBOToEF( BOOtherTransport bo) { OtherTransport efOtherTransport = new OtherTransport(); efOtherTransport.SetProperties( bo.HandlerId, bo.Id, bo.PipelineStepId); return(efOtherTransport); }
public void MapEntityToModel() { var mapper = new DALOtherTransportMapper(); OtherTransport item = new OtherTransport(); item.SetProperties(1, 1, 1); ApiOtherTransportServerResponseModel response = mapper.MapEntityToModel(item); response.HandlerId.Should().Be(1); response.Id.Should().Be(1); response.PipelineStepId.Should().Be(1); }
public void MapEFToBO() { var mapper = new DALOtherTransportMapper(); OtherTransport entity = new OtherTransport(); entity.SetProperties(1, 1, 1); BOOtherTransport response = mapper.MapEFToBO(entity); response.HandlerId.Should().Be(1); response.Id.Should().Be(1); response.PipelineStepId.Should().Be(1); }
public virtual OtherTransport MapModelToEntity( int id, ApiOtherTransportServerRequestModel model ) { OtherTransport item = new OtherTransport(); item.SetProperties( id, model.HandlerId, model.PipelineStepId); return(item); }
public void MapEntityToModelList() { var mapper = new DALOtherTransportMapper(); OtherTransport item = new OtherTransport(); item.SetProperties(1, 1, 1); List <ApiOtherTransportServerResponseModel> response = mapper.MapEntityToModel(new List <OtherTransport>() { { item } }); response.Count.Should().Be(1); }
public void MapEFToBOList() { var mapper = new DALOtherTransportMapper(); OtherTransport entity = new OtherTransport(); entity.SetProperties(1, 1, 1); List <BOOtherTransport> response = mapper.MapEFToBO(new List <OtherTransport>() { entity }); response.Count.Should().Be(1); }