I am currently trying the test dependency out but observed a weird error when prepopulating the store. I am currently filtering out contacts without a lookup key. While this should technically never be the case, the property is still nullable. Now, when setting a prepopulated contact with a lookup key, the result using fetchContacts returns the exact same contact but without the lookup key, which is null:
private val store = TestContactStore(
contactsSnapshot = listOf(
StoredContact(
contactId = 0,
lookupKey = LookupKey(""),
firstName = "Max",
lastName = "Mustermann",
phones = listOf(
LabeledValue(
value = PhoneNumber("123456789"),
label = Label.PhoneNumberMobile,
)
),
postalAddresses = listOf(
LabeledValue(
value = PostalAddress(
postCode = "12345",
street = "Musterweg 10",
city = "Musterstadt",
country = "Musterland"
),
label = Label.LocationHome
)
)
)
)
)
I am currently trying the test dependency out but observed a weird error when prepopulating the store. I am currently filtering out contacts without a lookup key. While this should technically never be the case, the property is still nullable. Now, when setting a prepopulated contact with a lookup key, the result using fetchContacts returns the exact same contact but without the lookup key, which is null: