public void MapBOToModel() { var mapper = new BOLEventRelatedDocumentMapper(); BOEventRelatedDocument bo = new BOEventRelatedDocument(); bo.SetProperties(1, "A", "A"); ApiEventRelatedDocumentResponseModel response = mapper.MapBOToModel(bo); response.EventId.Should().Be("A"); response.Id.Should().Be(1); response.RelatedDocumentId.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALEventRelatedDocumentMapper(); var bo = new BOEventRelatedDocument(); bo.SetProperties(1, "A", "A"); EventRelatedDocument response = mapper.MapBOToEF(bo); response.EventId.Should().Be("A"); response.Id.Should().Be(1); response.RelatedDocumentId.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLEventRelatedDocumentMapper(); BOEventRelatedDocument bo = new BOEventRelatedDocument(); bo.SetProperties(1, "A", "A"); List <ApiEventRelatedDocumentResponseModel> response = mapper.MapBOToModel(new List <BOEventRelatedDocument>() { { bo } }); response.Count.Should().Be(1); }