Ejemplo n.º 1
0
 private void ValidateAuditEntry(AuditEntry auditEntry, AuditAction expectedAuditAction, string expectedAction, Uri expectedUri, HttpStatusCode?expectedStatusCode)
 {
     Assert.NotNull(auditEntry);
     Assert.Equal(expectedAuditAction, auditEntry.AuditAction);
     Assert.Equal(expectedAction, auditEntry.Action);
     Assert.Equal(expectedUri, auditEntry.RequestUri);
     Assert.Equal(expectedStatusCode, auditEntry.StatusCode);
 }
Ejemplo n.º 2
0
 private void ValidateExecutedAuditEntry(AuditEntry auditEntry, string expectedAction, Uri expectedUri, HttpStatusCode?expectedStatusCode)
 {
     ValidateAuditEntry(auditEntry, AuditAction.Executed, expectedAction, expectedUri, expectedStatusCode);
 }
Ejemplo n.º 3
0
 private void ValidateExecutingAuditEntry(AuditEntry auditEntry, string expectedAction, Uri expectedUri)
 {
     ValidateAuditEntry(auditEntry, AuditAction.Executing, expectedAction, expectedUri, null);
 }