public void MapEFToBO() { var mapper = new DALTableMapper(); Table entity = new Table(); entity.SetProperties(1, "A"); BOTable response = mapper.MapEFToBO(entity); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALTableMapper(); var bo = new BOTable(); bo.SetProperties(1, "A"); Table response = mapper.MapBOToEF(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapEFToBOList() { var mapper = new DALTableMapper(); Table entity = new Table(); entity.SetProperties(1, "A"); List <BOTable> response = mapper.MapEFToBO(new List <Table>() { entity }); response.Count.Should().Be(1); }