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