public void MapEFToBO() { var mapper = new DALColumnSameAsFKTableMapper(); ColumnSameAsFKTable entity = new ColumnSameAsFKTable(); entity.SetProperties(1, 1, 1); BOColumnSameAsFKTable response = mapper.MapEFToBO(entity); response.Id.Should().Be(1); response.Person.Should().Be(1); response.PersonId.Should().Be(1); }
public void MapBOToEF() { var mapper = new DALColumnSameAsFKTableMapper(); var bo = new BOColumnSameAsFKTable(); bo.SetProperties(1, 1, 1); ColumnSameAsFKTable response = mapper.MapBOToEF(bo); response.Id.Should().Be(1); response.Person.Should().Be(1); response.PersonId.Should().Be(1); }
public void MapEFToBOList() { var mapper = new DALColumnSameAsFKTableMapper(); ColumnSameAsFKTable entity = new ColumnSameAsFKTable(); entity.SetProperties(1, 1, 1); List <BOColumnSameAsFKTable> response = mapper.MapEFToBO(new List <ColumnSameAsFKTable>() { entity }); response.Count.Should().Be(1); }