public void ProcedureRecordAuditTest() { ProcedureRecordAuditHelper helper = new ProcedureRecordAuditHelper( new DicomAuditSource("testApp", "Site", AuditSourceTypeCodeEnum.ApplicationServerProcessTierInMultiTierSystem), EventIdentificationTypeEventOutcomeIndicator.Success, EventIdentificationTypeEventActionCode.C); helper.AddUserParticipant(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 ProcedureRecordAuditTest() { ProcedureRecordAuditHelper helper = new ProcedureRecordAuditHelper( new DicomAuditSource("testApp", "Site", AuditSourceTypeCodeEnum.ApplicationServerProcessTierInMultiTierSystem), EventIdentificationTypeEventOutcomeIndicator.Success, EventIdentificationTypeEventActionCode.C); helper.AddUserParticipant(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); }