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