public void MapEFToBO() { var mapper = new DALEventRelatedDocumentMapper(); EventRelatedDocument entity = new EventRelatedDocument(); entity.SetProperties("A", 1, "A"); BOEventRelatedDocument response = mapper.MapEFToBO(entity); response.EventId.Should().Be("A"); response.Id.Should().Be(1); response.RelatedDocumentId.Should().Be("A"); }
public void MapEFToBOList() { var mapper = new DALEventRelatedDocumentMapper(); EventRelatedDocument entity = new EventRelatedDocument(); entity.SetProperties("A", 1, "A"); List <BOEventRelatedDocument> response = mapper.MapEFToBO(new List <EventRelatedDocument>() { entity }); response.Count.Should().Be(1); }