---
title: AppEntityIdentifierExpectation
framework: appintentstesting
role: symbol
role_heading: Structure
platforms: [iOS 27.3+, iPadOS 27.3+, Mac Catalyst 27.3+, macOS 27.3+, tvOS 27.3+, visionOS 27.3+, watchOS 27.3+]
path: appintentstesting/appentityidentifierexpectation
---

# AppEntityIdentifierExpectation

An expectation that checks whether an app entity is a specific instance by comparing its type and identifier.

## Declaration

```swift
struct AppEntityIdentifierExpectation
```

## Overview

Overview An identifier expectation checks which entity instance a value holds. You can pass it as an intent parameter expectation, as an intent result expectation, or wherever a property holds an entity. You don’t create an identifier expectation directly. Call expectIdentifier(_:) instead: let workCalendarExpectation = createEventIntentDefinition.expect(     calendar: calendarEntityDefinition.expectIdentifier(         "edea53fb-90b7-4481-afc7-d86e2dd0d27d"     ) ) To also check the instance’s properties, call expect on it, which returns an AppEntityExpectation.

## Topics

### Instance Properties

- [expect](appintentstesting/appentityidentifierexpectation/expect.md)

## Relationships

### Conforms To

- [AppEntityExpectationProviding](appintentstesting/appentityexpectationproviding.md)
- [IntentValueExpectation](appintentstesting/intentvalueexpectation.md)
- [ResolvableAppEntityExpectation](appintentstesting/resolvableappentityexpectation.md)
- [ResolvableIntentValueExpectation](appintentstesting/resolvableintentvalueexpectation.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
