public void DataExportAuditTest() { DataExportAuditHelper helper = new DataExportAuditHelper( new DicomAuditSource("testApp", "Site", AuditSourceTypeCodeEnum.ApplicationServerProcessTierInMultiTierSystem), EventIdentificationContentsEventOutcomeIndicator.Success, "MEDIA123"); helper.AddExporter(new AuditPersonActiveParticipant("testUser", "test@test", "Test Name")); DicomAttributeCollection collection = new DicomAttributeCollection(); SetupMR(collection); helper.AddPatientParticipantObject(new AuditPatientParticipantObject(collection)); helper.AddStorageInstance(new StorageInstance(new DicomMessage(new DicomAttributeCollection(), collection))); string output = helper.Serialize(true); Assert.IsNotEmpty(output); Assert.Ignore("Skipping schema validation due to schema bug #9455"); Exception exception; if (!helper.Verify(out exception)) { throw exception; } }
public void DataExportAuditTest() { DataExportAuditHelper helper = new DataExportAuditHelper( new DicomAuditSource("testApp", "Site", AuditSourceTypeCodeEnum.ApplicationServerProcessTierInMultiTierSystem), EventIdentificationTypeEventOutcomeIndicator.Success, "MEDIA123"); helper.AddExporter(new AuditPersonActiveParticipant("testUser", "test@test", "Test Name")); DicomAttributeCollection collection = new DicomAttributeCollection(); SetupMR(collection); helper.AddPatientParticipantObject(new AuditPatientParticipantObject(collection)); helper.AddStorageInstance(new StorageInstance(new DicomMessage(new DicomAttributeCollection(), collection))); string output = helper.Serialize(true); Assert.IsNotEmpty(output); string failure; bool result = helper.Verify(out failure); Assert.IsTrue(result, failure); }
public void DataExportAuditTest() { DataExportAuditHelper helper = new DataExportAuditHelper( new DicomAuditSource("testApp", "Site", AuditSourceTypeCodeEnum.ApplicationServerProcessTierInMultiTierSystem), EventIdentificationContentsEventOutcomeIndicator.Success, "MEDIA123"); helper.AddExporter(new AuditPersonActiveParticipant("testUser", "test@test", "Test Name")); DicomAttributeCollection collection = new DicomAttributeCollection(); SetupMR(collection); helper.AddPatientParticipantObject(new AuditPatientParticipantObject(collection)); helper.AddStorageInstance(new StorageInstance(new DicomMessage(new DicomAttributeCollection(), collection))); string output = helper.Serialize(true); Assert.IsNotEmpty(output); Assert.Ignore("Skipping schema validation due to schema bug #9455"); Exception exception; if (!helper.Verify(out exception)) throw exception; }