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 void MapBOToEF() { var mapper = new DALOtherTransportMapper(); var bo = new BOOtherTransport(); bo.SetProperties(1, 1, 1); OtherTransport response = mapper.MapBOToEF(bo); response.HandlerId.Should().Be(1); response.Id.Should().Be(1); response.PipelineStepId.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); }