public void TestOnDeleteTenant() { bool success = true; string tenantName = "Tenant" + Guid.NewGuid(); var mockAuditLog = new Mock <IAuditLog>(MockBehavior.Strict); mockAuditLog.Setup(al => al.OnDeleteTenant(success, tenantName)); var eventTarget = new AuditLogTenantEventTarget(mockAuditLog.Object); var tenant = new Tenant { Name = tenantName }; IDictionary <string, object> state = new Dictionary <string, object>(); eventTarget.GatherAuditLogEntityDetailsForDelete(tenant, state); eventTarget.WriteDeleteAuditLogEntries(success, tenant.Id, state); mockAuditLog.VerifyAll(); }