public void MapEFToBO() { var mapper = new DALSchemaBPersonMapper(); SchemaBPerson entity = new SchemaBPerson(); entity.SetProperties(1, "A"); BOSchemaBPerson response = mapper.MapEFToBO(entity); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapEFToBOList() { var mapper = new DALSchemaBPersonMapper(); SchemaBPerson entity = new SchemaBPerson(); entity.SetProperties(1, "A"); List <BOSchemaBPerson> response = mapper.MapEFToBO(new List <SchemaBPerson>() { entity }); response.Count.Should().Be(1); }