Beispiel #1
0
		public void AuditLogUsedAuditTest()
		{
			AuditLogUsedAuditHelper helper =
				new AuditLogUsedAuditHelper(
					new DicomAuditSource("testApp", "Site", AuditSourceTypeCodeEnum.ApplicationServerProcessTierInMultiTierSystem),
					EventIdentificationTypeEventOutcomeIndicator.Success, 
					"http://www.clearcanvas.ca");

			helper.AddActiveParticipant(new AuditPersonActiveParticipant("testUser", "test@test", "Test Name"));

			string output = helper.Serialize(true);

			Assert.IsNotEmpty(output);

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

			Assert.IsTrue(result, failure);
		}
Beispiel #2
0
		public void AuditLogUsedAuditTest()
		{
			AuditLogUsedAuditHelper helper =
				new AuditLogUsedAuditHelper(
					new DicomAuditSource("testApp", "Site", AuditSourceTypeCodeEnum.ApplicationServerProcessTierInMultiTierSystem),
					EventIdentificationContentsEventOutcomeIndicator.Success, 
					"http://www.clearcanvas.ca");

			helper.AddActiveParticipant(new AuditPersonActiveParticipant("testUser", "test@test", "Test Name"));

			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;
		}
Beispiel #3
0
        public void AuditLogUsedAuditTest()
        {
            AuditLogUsedAuditHelper helper =
                new AuditLogUsedAuditHelper(
                    new DicomAuditSource("testApp", "Site", AuditSourceTypeCodeEnum.ApplicationServerProcessTierInMultiTierSystem),
                    EventIdentificationTypeEventOutcomeIndicator.Success,
                    "http://www.clearcanvas.ca");

            helper.AddActiveParticipant(new AuditPersonActiveParticipant("testUser", "test@test", "Test Name"));

            string output = helper.Serialize(true);

            Assert.IsNotEmpty(output);

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

            Assert.IsTrue(result, failure);
        }
Beispiel #4
0
        public void AuditLogUsedAuditTest()
        {
            AuditLogUsedAuditHelper helper =
                new AuditLogUsedAuditHelper(
                    new DicomAuditSource("testApp", "Site", AuditSourceTypeCodeEnum.ApplicationServerProcessTierInMultiTierSystem),
                    EventIdentificationContentsEventOutcomeIndicator.Success,
                    "http://www.clearcanvas.ca");

            helper.AddActiveParticipant(new AuditPersonActiveParticipant("testUser", "test@test", "Test Name"));

            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;
            }
        }