예제 #1
0
        public void PatientRecordAuditTest()
        {
            PatientRecordAuditHelper helper =
                new PatientRecordAuditHelper(
                    new DicomAuditSource("testApp", "Site", AuditSourceTypeCodeEnum.ApplicationServerProcessTierInMultiTierSystem),
                    EventIdentificationTypeEventOutcomeIndicator.Success, EventIdentificationTypeEventActionCode.C);

            helper.AddUserParticipant(new AuditPersonActiveParticipant("testUser", "test@test", "Test Name"));
            helper.AddPatientParticipantObject(new AuditPatientParticipantObject("id1234", "Test Patient"));

            string output = helper.Serialize(true);

            Assert.IsNotEmpty(output);

            string failure;
            bool   result = helper.Verify(out failure);

            Assert.IsTrue(result, failure);
        }
예제 #2
0
		public void PatientRecordAuditTest()
		{
			PatientRecordAuditHelper helper =
				new PatientRecordAuditHelper(
					new DicomAuditSource("testApp", "Site", AuditSourceTypeCodeEnum.ApplicationServerProcessTierInMultiTierSystem),
					EventIdentificationTypeEventOutcomeIndicator.Success, EventIdentificationTypeEventActionCode.C);

			helper.AddUserParticipant(new AuditPersonActiveParticipant("testUser", "test@test", "Test Name"));
			helper.AddPatientParticipantObject(new AuditPatientParticipantObject("id1234", "Test Patient"));

			string output = helper.Serialize(true);

			Assert.IsNotEmpty(output);

			string failure;
			bool result = helper.Verify(out failure);

			Assert.IsTrue(result, failure);
		}