public void MapEFToBOList() { var mapper = new DALVariableSetMapper(); VariableSet entity = new VariableSet(); entity.SetProperties("A", true, "A", "A", "A", 1); List <BOVariableSet> response = mapper.MapEFToBO(new List <VariableSet>() { entity }); response.Count.Should().Be(1); }
public virtual VariableSet MapBOToEF( BOVariableSet bo) { VariableSet efVariableSet = new VariableSet(); efVariableSet.SetProperties( bo.Id, bo.IsFrozen, bo.JSON, bo.OwnerId, bo.RelatedDocumentIds, bo.Version); return(efVariableSet); }
public void MapEFToBO() { var mapper = new DALVariableSetMapper(); VariableSet entity = new VariableSet(); entity.SetProperties("A", true, "A", "A", "A", 1); BOVariableSet response = mapper.MapEFToBO(entity); response.Id.Should().Be("A"); response.IsFrozen.Should().Be(true); response.JSON.Should().Be("A"); response.OwnerId.Should().Be("A"); response.RelatedDocumentIds.Should().Be("A"); response.Version.Should().Be(1); }