private void AssertGeneratedAuditEventPolicyItem(EntityItemAuditType auditEventPolicyItemEntity, string entityName)
 {
     Assert.IsNotNull(auditEventPolicyItemEntity, string.Format(NULL_AUDIT_ITEM_ENTITY_ASSERT_FAIILED_MSG, entityName));
     Assert.AreEqual(auditEventPolicyItemEntity.status, StatusEnumeration.exists, string.Format(INVALID_AUDIT_ITEM_ENTITY_STATUS_ASSERT_FAIILED_MSG, entityName));
     Assert.AreEqual(auditEventPolicyItemEntity.datatype, SimpleDatatypeEnumeration.@string, string.Format(INVALID_AUDIT_ITEM_ENTITY_DATATYPE_ASSERT_FAIILED_MSG, entityName));
     Assert.IsNull(auditEventPolicyItemEntity.Value, string.Format(INVALID_AUDIT_ITEM_VALUE_ASSERT_FAIILED_MSG, entityName));
 }
Ejemplo n.º 2
0
 private void AssertGeneratedAuditEventPolicyItem(EntityItemAuditType auditEventPolicyItemEntity, string entityName)
 {
     Assert.IsNotNull(auditEventPolicyItemEntity, string.Format(NULL_AUDIT_ITEM_ENTITY_ASSERT_FAIILED_MSG, entityName));
     Assert.AreEqual(auditEventPolicyItemEntity.status, StatusEnumeration.exists, string.Format(INVALID_AUDIT_ITEM_ENTITY_STATUS_ASSERT_FAIILED_MSG, entityName));
     Assert.AreEqual(auditEventPolicyItemEntity.datatype, SimpleDatatypeEnumeration.@string, string.Format(INVALID_AUDIT_ITEM_ENTITY_DATATYPE_ASSERT_FAIILED_MSG, entityName));
     Assert.IsNull(auditEventPolicyItemEntity.Value, string.Format(INVALID_AUDIT_ITEM_VALUE_ASSERT_FAIILED_MSG, entityName));
 }
 private void AssertAuditEventResultForItem(EntityItemAuditType auditEventEntity, AuditEventStatus expectedAuditEventStatus)
 {
     Assert.AreEqual(expectedAuditEventStatus.ToString(), auditEventEntity.Value, "Unexpected audit event item was found");
 }
 private void AssertAuditEventResultForItem(EntityItemAuditType auditEventEntity, AuditEventStatus expectedAuditEventStatus)
 {
     Assert.AreEqual(expectedAuditEventStatus.ToString(), auditEventEntity.Value, "Unexpected audit event item was found");
 }
 private void SetEntityWithValue(EntityItemAuditType auditEventEntity, AuditEventStatus auditEventPolicyValue)
 {
     auditEventEntity.Value = auditEventPolicyValue.ToString();
 }
 private void SetEntityWithValue(EntityItemAuditType auditEventEntity, AuditEventStatus auditEventPolicyValue)
 {
     auditEventEntity.Value = auditEventPolicyValue.ToString();
 }