public void MapModelToBO() { var mapper = new BOLEventRelatedDocumentMapper(); ApiEventRelatedDocumentRequestModel model = new ApiEventRelatedDocumentRequestModel(); model.SetProperties("A", "A"); BOEventRelatedDocument response = mapper.MapModelToBO(1, model); response.EventId.Should().Be("A"); response.RelatedDocumentId.Should().Be("A"); }
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 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 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); }